tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nelua: unstable-2024-04-20 -> 0-unstable-2024-04-20
OPNA2608
2 years ago
85a40080
402d9d64
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
interpreters
nelua
default.nix
+6
-3
pkgs/development/interpreters/nelua/default.nix
reviewed
···
2
2
3
3
stdenv.mkDerivation rec {
4
4
pname = "nelua";
5
5
-
version = "unstable-2024-04-20";
5
5
+
version = "0-unstable-2024-04-20";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "edubart";
···
14
14
postPatch = ''
15
15
substituteInPlace lualib/nelua/version.lua \
16
16
--replace "NELUA_GIT_HASH = nil" "NELUA_GIT_HASH = '${src.rev}'" \
17
17
-
--replace "NELUA_GIT_DATE = nil" "NELUA_GIT_DATE = '${lib.removePrefix "unstable-" version}'"
17
17
+
--replace "NELUA_GIT_DATE = nil" "NELUA_GIT_DATE = '${lib.removePrefix "0-unstable-" version}'"
18
18
'';
19
19
20
20
makeFlags = [ "PREFIX=$(out)" ];
···
23
23
24
24
doCheck = true;
25
25
26
26
-
passthru.updateScript = unstableGitUpdater { };
26
26
+
passthru.updateScript = unstableGitUpdater {
27
27
+
# no releases, only stale "latest" tag
28
28
+
hardcodeZeroVersion = true;
29
29
+
};
27
30
28
31
meta = with lib; {
29
32
description = "Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code";