mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-20 20:20:26 +03:00
Merge pull request #269890 from marsam/update-nelua
nelua: unstable-2023-09-16 -> unstable-2023-11-19
This commit is contained in:
commit
7086fd448f
@ -1,22 +1,30 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, luaPackages }:
|
{ lib, stdenv, fetchFromGitHub, luaPackages, unstableGitUpdater }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nelua";
|
pname = "nelua";
|
||||||
version = "unstable-2023-09-16";
|
version = "unstable-2023-11-19";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "edubart";
|
owner = "edubart";
|
||||||
repo = "nelua-lang";
|
repo = "nelua-lang";
|
||||||
rev = "596fcca5c77932da8a07c249de59a9dff3099495";
|
rev = "e82695abf0a68a30a593cefb0bf1143cf9e14b6b";
|
||||||
hash = "sha256-gXTlAxW7s3VBiC1fGU0aUlGspHlvyY7FC5KLeU2FyGQ=";
|
hash = "sha256-Srgoq07JQirxmZcDvw4UdfoYZ5HFT0PbYPoHY99BW/c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace lualib/nelua/version.lua \
|
||||||
|
--replace "NELUA_GIT_HASH = nil" "NELUA_GIT_HASH = '${src.rev}'" \
|
||||||
|
--replace "NELUA_GIT_DATE = nil" "NELUA_GIT_DATE = '${lib.removePrefix "unstable-" version}'"
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
nativeCheckInputs = [ luaPackages.luacheck ];
|
nativeCheckInputs = [ luaPackages.luacheck ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code";
|
description = "Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code";
|
||||||
homepage = "https://nelua.io/";
|
homepage = "https://nelua.io/";
|
||||||
|
Loading…
Reference in New Issue
Block a user