Skip to content

Commit 162c5ca

Browse files
committed
chore(nix): read Hunk version from package.json
1 parent aefa3d1 commit 162c5ca

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

nix/package.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
{ bun2nix, ... }:
1+
{ bun2nix, lib, ... }:
2+
let
3+
packageJson = lib.importJSON ../package.json;
4+
in
25
bun2nix.mkDerivation {
36
pname = "hunkdiff";
4-
version = "0.10.0";
7+
version = packageJson.version;
58

69
src = ../.;
710

0 commit comments

Comments
 (0)