Skip to content

Instantly share code, notes, and snippets.

@kalbasit
Last active January 3, 2019 06:33
Show Gist options
  • Save kalbasit/deec7b74b64f70d24ca1967883c8e7b6 to your computer and use it in GitHub Desktop.
Save kalbasit/deec7b74b64f70d24ca1967883c8e7b6 to your computer and use it in GitHub Desktop.
$ nixos-rebuild -I nixpkgs=./external/nixpkgs-stable.nix build
building Nix...
building the system configuration...
error: anonymous function at /yl/code/personal/stories/shabka_pin-nixpkgs/src/github.com/kalbasit/shabka/external/nixpkgs-stable.nix:1:1 called with unexpected argument 'system', at /nix/store/gbmr238hsi0davrk8k6syqqj8824s167-home-manager-235a6617c46b4267d4f67cde9a93dbef0f12bd3f/modules/misc/nixpkgs.nix:52:11
(use '--show-trace' to show detailed location information)
$ nix-shell -I nixpkgs=./external/nixpkgs-stable.nix -p jq --run 'jq --version'
jq-1.5
{}:
let
pinnedVersion = builtins.fromJSON (builtins.readFile ./nixpkgs-stable-version.json);
pinned = import (builtins.fetchGit {
inherit (pinnedVersion) url rev ref;
}) {};
in
pinned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment