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