2022-05-26 10:22:53 +00:00
|
|
|
{ pkgs ? (
|
|
|
|
let
|
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
flakeLock = fromJSON (readFile ./flake.lock);
|
|
|
|
locked = flakeLock.nodes.nixpkgs.locked;
|
|
|
|
nixpkgs = assert locked.type == "github"; builtins.fetchTarball {
|
|
|
|
url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.tar.gz";
|
|
|
|
sha256 = locked.narHash;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import nixpkgs {
|
|
|
|
overlays = [
|
|
|
|
(import ./overlay.nix)
|
|
|
|
];
|
|
|
|
}
|
|
|
|
)
|
2022-05-26 10:14:23 +00:00
|
|
|
}:
|
2022-05-26 10:22:53 +00:00
|
|
|
|
2020-07-23 09:19:55 +00:00
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
pkgs.nix-prefetch-git
|
2020-07-24 10:16:51 +00:00
|
|
|
pkgs.nixpkgs-fmt
|
2020-07-23 09:19:55 +00:00
|
|
|
pkgs.go
|
2022-05-26 10:14:23 +00:00
|
|
|
pkgs.gomod2nix
|
2020-07-23 09:19:55 +00:00
|
|
|
];
|
|
|
|
}
|