Skip to content

Commit 8ad93f3

Browse files
committed
use finalAttrs
1 parent 547ac36 commit 8ad93f3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

pkgs/by-name/lu/lunarml/package.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55
, lua5_3
66
}:
77

8-
let
8+
stdenvNoCC.mkDerivation (finalAttrs: {
99
version = "0.2.0";
10-
in
11-
stdenvNoCC.mkDerivation {
12-
inherit version;
1310

1411
pname = "lunarml";
1512

1613
src = fetchFromGitHub {
1714
owner = "minoki";
1815
repo = "LunarML";
19-
rev = "refs/tags/v${version}";
16+
rev = "refs/tags/v${finalAttrs.version}";
2017
hash = "sha256-w0DWvFegAdpJTab60cDLA+tketmMYeKApx1rCNr27i4=";
2118
};
2219

@@ -55,4 +52,4 @@ stdenvNoCC.mkDerivation {
5552
maintainers = with lib.maintainers; [ toastal ratsclub ];
5653
platforms = mlton.meta.platforms;
5754
};
58-
}
55+
})

0 commit comments

Comments
 (0)