3 ms·
I assume they're talking about the same process you can use to pin nixpkgs. Have a nixpkgs.json with contents like these { "url": "https://github.com
by elbear 6y ago
I assume they're talking about the same process you can use to pin nixpkgs. Have a nixpkgs.json with contents like these
{
"url": "https://github.com/nixos/nixpkgs-channels.git",
"rev": "ea553d8c67c6a718448da50826ff5b6916dc9c59",
"date": "2020-02-02T15:39:15+01:00",
"sha256": "0g9smv36sk42rfyzi8wyq2wl11c5l0qaldij1zjdj60s57cl3wgj",
"fetchSubmodules": false
}
Then, in nixpkgs.nix have
let
bootstrap = import <nixpkgs> { };
nixpkgs-pin = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
nixpkgs = bootstrap.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
inherit (nixpkgs-pin) rev sha256;
};
in
import nixpkgs