We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cb93d commit f213cdaCopy full SHA for f213cda
nix/nixpkgs.nix
@@ -1,8 +1,10 @@
1
+{ system ? builtins.currentSystem }:
2
let
- # nixpkgs is only used for development. Don't add it to the flake.lock.
3
- gitRev = "2c2a09678ce2ce4125591ac4fe2f7dfaec7a609c";
+ lock = builtins.fromJSON (builtins.readFile ../flake.lock);
4
+ nixpkgs =
5
+ fetchTarball {
6
+ url = "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
7
+ sha256 = lock.nodes.nixpkgs.locked.narHash;
8
+ };
9
in
-builtins.fetchTarball {
- url = "https://github.com/NixOS/nixpkgs/archive/${gitRev}.tar.gz";
- sha256 = "1pkz5bq8f5p9kxkq3142lrrq1592d7zdi75fqzrf02cl1xy2cwvn";
-}
10
+import nixpkgs { inherit system; }
0 commit comments