Move nixpkgs reference to its own expression

Reviewed-By: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
This commit is contained in:
Aleix Roca Nonell 2023-10-31 10:36:20 +01:00 committed by Rodrigo Arias Mallo
parent 4727c98354
commit 8d5714c67b
2 changed files with 10 additions and 9 deletions

View File

@ -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
View 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";
}