Unverified Commit a378e684 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

Merge pull request #248158 from figsoda/nil

nil: 2023-05-09 -> 2023-08-09
parents 195975b1 784b4a8b
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
{ 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)