Move nixpkgs reference to its own expression
Reviewed-By: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
parent
4727c98354
commit
8d5714c67b
10
default.nix
10
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 <url>`
|
||||
sha256 = "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky";
|
||||
};
|
||||
nixpkgsPath = import ./nixpkgs.nix;
|
||||
|
||||
pkgs = import nixpkgsPath {
|
||||
overlays = [ bscOverlay ];
|
||||
|
9
nixpkgs.nix
Normal file
9
nixpkgs.nix
Normal file
@ -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 <url>`
|
||||
sha256 = "0xczslr40zy1wlg0ir8mwyyn5gz22i2f9dfd0vmgnk1664v4chky";
|
||||
}
|
Loading…
Reference in New Issue
Block a user