figsoda 2023-08-09 12:07:55 -04:00
parent c25960f7e8
commit 784b4a8b70

View File

@ -1,24 +1,24 @@
{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
{ lib, rustPlatform, fetchFromGitHub, nixVersions, nix-update-script }:
rustPlatform.buildRustPackage rec {
pname = "nil";
version = "2023-05-09";
version = "2023-08-09";
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
hash = "sha256-Xg3Cux5wQDatXRvQWsVD0YPfmxfijjG8+gxYqgoT6JE=";
hash = "sha256-fZ8KfBMcIFO/R7xaWtB85SFeuUjb9SCH8fxYBnY8068=";
};
cargoHash = "sha256-N7flQRIc0CXTuKjy9tVZapu+CXUT4rg66VLLT/vMUoc=";
CFG_RELEASE = version;
cargoHash = "sha256-lyKPmzuZB9rCBI9JxhxlyDtNHLia8FXGnSgV+D/dwgo=";
nativeBuildInputs = [
(lib.getBin nix)
(lib.getBin nixVersions.unstable)
];
env.CFG_RELEASE = version;
# might be related to https://github.com/NixOS/nix/issues/5884
preBuild = ''
export NIX_STATE_DIR=$(mktemp -d)