1
1
mirror of https://github.com/oxalica/nil.git synced 2024-08-17 06:30:38 +03:00

Update flake and make it compatible with master changes

Ref: https://github.com/NixOS/nixpkgs/pull/305951
This commit is contained in:
oxalica 2024-05-01 09:45:04 -04:00
parent b6869253ef
commit aa24d32f04
2 changed files with 12 additions and 12 deletions

View File

@ -5,11 +5,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1704161960,
"narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=",
"lastModified": 1714314149,
"narHash": "sha256-yNAevSKF4krRWacmLUsLK7D7PlfuY3zF0lYnGYNi9vQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "63143ac2c9186be6d9da6035fa22620018c85932",
"rev": "cf8cc1201be8bc71b7cbbbdaf349b22f4f99c7ae",
"type": "github"
},
"original": {
@ -51,11 +51,11 @@
]
},
"locked": {
"lastModified": 1704593904,
"narHash": "sha256-nDoXZDTRdgF3b4n3m011y99nYFewvOl9UpzFvP8Rb3c=",
"lastModified": 1714529851,
"narHash": "sha256-YMKJW880f7LHXVRzu93xa6Ek+QLECIu0IRQbXbzZe38=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "c36fd70a99decfa6e110c86f296a97613034a680",
"rev": "9ca720fdcf7865385ae3b93ecdf65f1a64cb475e",
"type": "github"
},
"original": {

View File

@ -18,7 +18,7 @@ rec {
date = "${substring 0 4 mtime}-${substring 4 2 mtime}-${substring 6 2 mtime}";
rev = self.rev or (lib.warn "Git changes are not committed" (self.dirtyRev or "dirty"));
mkNil = { rustPlatform, nixUnstable, ... }:
mkNil = { rustPlatform, nixVersions, ... }:
rustPlatform.buildRustPackage {
pname = "nil";
version = "unstable-${date}";
@ -29,7 +29,7 @@ rec {
allowBuiltinFetchGit = false;
};
nativeBuildInputs = [ nixUnstable.out ];
nativeBuildInputs = [ (nixVersions.latest or nixVersions.unstable) ];
CFG_RELEASE = "git-${rev}";
@ -148,7 +148,7 @@ rec {
# See comments above.
devShells.full = devShells.default.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.nixUnstable.out
(pkgs.nixVersions.latest or pkgs.nixVersions.unstable).out
];
});