summaryrefslogtreecommitdiff
path: root/nix/nixpkgs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/nixpkgs.nix')
-rw-r--r--nix/nixpkgs.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nix/nixpkgs.nix b/nix/nixpkgs.nix
new file mode 100644
index 000000000..21e7f17a2
--- /dev/null
+++ b/nix/nixpkgs.nix
@@ -0,0 +1,8 @@
+let
+ json = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
+ nixpkgs = import (builtins.fetchTarball {
+ name = "nixos-unstable";
+ url = "${json.url}/archive/${json.rev}.tar.gz";
+ inherit (json) sha256;
+ });
+in nixpkgs