Use flake input for spork to avoid hash mismatches

This commit is contained in:
bluepython508
2026-04-01 17:05:24 +01:00
parent cf2f38c75a
commit 5523bfbf2b
2 changed files with 23 additions and 7 deletions

19
flake.lock generated
View File

@@ -35,7 +35,24 @@
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"river": "river"
"river": "river",
"spork": "spork"
}
},
"spork": {
"flake": false,
"locked": {
"lastModified": 1774924473,
"narHash": "sha256-YnmeSt/u0S9rQD/AOBBj0YfinG80j6VQ4TZ9Xq2TSR4=",
"owner": "janet-lang",
"repo": "spork",
"rev": "5bc08fb253d2b2b641c322cd51b9c10eed254706",
"type": "github"
},
"original": {
"owner": "janet-lang",
"repo": "spork",
"type": "github"
}
}
},

View File

@@ -4,11 +4,16 @@
url = "git+https://codeberg.org/river/river.git?ref=main";
flake = false;
};
inputs.spork = {
url = "github:janet-lang/spork";
flake = false;
};
outputs = inputs @ {
self,
nixpkgs,
river,
spork,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
eachSystem = f:
@@ -35,12 +40,6 @@
patches = [];
doCheck = false;
};
spork = pkgs.fetchFromGitHub {
owner = "janet-lang";
repo = "spork";
rev = "master";
hash = "sha256-gFUyrqkcjD34LZ9G7igaDwHnfIUUN9MzbvwEk9uWl1w=";
};
janet-pm = pkgs.stdenv.mkDerivation {
pname = "janet-pm";
version = "1.1.1";