diff --git a/default.nix b/default.nix index f374124..a28f759 100644 --- a/default.nix +++ b/default.nix @@ -1,16 +1,8 @@ let bscOverlay = import ./overlay.nix; - commit = "d680ded26da5cf104dd2735a51e88d2d8f487b4d"; - # Pin the nixpkgs - nixpkgsPath = builtins.fetchTarball { - # Descriptive name to make the store path easier to identify - name = "nixpkgs-${commit}"; - url = "https://github.com/nixos/nixpkgs/archive/${commit}.tar.gz"; - # Hash obtained using `nix-prefetch-url --unpack ` - sha256 = "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky"; - }; + nixpkgsPath = import ./nixpkgs.nix; pkgs = import nixpkgsPath { overlays = [ bscOverlay ]; diff --git a/nixpkgs.nix b/nixpkgs.nix new file mode 100644 index 0000000..37e5ebd --- /dev/null +++ b/nixpkgs.nix @@ -0,0 +1,9 @@ +let + commit = "d680ded26da5cf104dd2735a51e88d2d8f487b4d"; +in builtins.fetchTarball { + # Descriptive name to make the store path easier to identify + name = "nixpkgs-${commit}"; + url = "https://github.com/nixos/nixpkgs/archive/${commit}.tar.gz"; + # Hash obtained using `nix-prefetch-url --unpack ` + sha256 = "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky"; +}