forked from mirrors/nixpkgs
Merge pull request #192846 from Misterio77/fennel-luapackages
luaPackages: fennel -> luaPackages.fennel
This commit is contained in:
commit
9089c201a6
|
@ -14,6 +14,7 @@ cqueues,,,,,,vcunat
|
|||
cyrussasl,https://github.com/JorjBauer/lua-cyrussasl.git,,,,,
|
||||
digestif,https://github.com/astoff/digestif.git,,,0.2-1,5.3,
|
||||
dkjson,,,,,,
|
||||
fennel,,,,,,misterio77
|
||||
fifo,,,,,,
|
||||
fluent,,,,,,alerque
|
||||
gitsigns.nvim,https://github.com/lewis6991/gitsigns.nvim.git,,,,5.1,
|
||||
|
|
|
|
@ -1,31 +0,0 @@
|
|||
{ lib, stdenv, fetchFromSourcehut, installShellFiles, lua }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fennel";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~technomancy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-TXmqvhT7Ab+S0UdLgl4xWrVvE//eCbu6qNnoxB7smE4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
buildInputs = [ lua ];
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
postInstall = ''
|
||||
installManPage fennel.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Lua Lisp language";
|
||||
homepage = "https://fennel-lang.org/";
|
||||
license = licenses.mit;
|
||||
platforms = lua.meta.platforms;
|
||||
maintainers = [ maintainers.maaslalani ];
|
||||
};
|
||||
}
|
|
@ -453,6 +453,32 @@ buildLuarocksPackage {
|
|||
};
|
||||
}) {};
|
||||
|
||||
fennel = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
|
||||
, fetchurl, lua
|
||||
}:
|
||||
buildLuarocksPackage {
|
||||
pname = "fennel";
|
||||
version = "1.2.0-1";
|
||||
knownRockspec = (fetchurl {
|
||||
url = "mirror://luarocks/fennel-1.2.0-1.rockspec";
|
||||
sha256 = "14qr0gldqgvzx3yzfjvy48inqn46xf0d92pcxp3hr1a17sf7xqmf";
|
||||
}).outPath;
|
||||
src = fetchurl {
|
||||
url = "https://fennel-lang.org/downloads/fennel-1.2.0.tar.gz";
|
||||
sha256 = "0ymnsri27pj98jbwx7hxsn1w39rxns0i8ds1fl421spc13gx88gx";
|
||||
};
|
||||
|
||||
disabled = with lua; (luaOlder "5.1");
|
||||
propagatedBuildInputs = [ lua ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://fennel-lang.org/";
|
||||
description = "A lisp that compiles to Lua";
|
||||
maintainers = with lib.maintainers; [ misterio77 ];
|
||||
license.fullName = "MIT";
|
||||
};
|
||||
}) {};
|
||||
|
||||
fifo = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
|
||||
, fetchzip, lua
|
||||
}:
|
||||
|
|
|
@ -29,6 +29,15 @@ with prev;
|
|||
'';
|
||||
});
|
||||
|
||||
fennel = prev.fennel.overrideAttrs(oa: {
|
||||
nativeBuildInputs = oa.nativeBuildInputs ++ [
|
||||
pkgs.installShellFiles
|
||||
];
|
||||
postInstall = ''
|
||||
installManPage fennel.1
|
||||
'';
|
||||
});
|
||||
|
||||
cqueues = (prev.lib.overrideLuarocks prev.cqueues (drv: {
|
||||
externalDeps = [
|
||||
{ name = "CRYPTO"; dep = pkgs.openssl_1_1; }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromSourcehut, fennel, lua }:
|
||||
{ lib, stdenv, fetchFromSourcehut, luaPackages, lua }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "fnlfmt";
|
||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-FKmr5Xihyk+ikYN8WXBq5UFJziwEb8xaUBswNt/JMBg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ fennel ];
|
||||
nativeBuildInputs = [ luaPackages.fennel ];
|
||||
|
||||
buildInputs = [ lua ];
|
||||
|
||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
|||
runHook preBuild
|
||||
|
||||
echo "#!${lua}/bin/lua" > fnlfmt
|
||||
${fennel}/bin/fennel --require-as-include --compile cli.fnl >> fnlfmt
|
||||
${luaPackages.fennel}/bin/fennel --require-as-include --compile cli.fnl >> fnlfmt
|
||||
chmod +x fnlfmt
|
||||
|
||||
runHook postBuild
|
||||
|
|
|
@ -339,6 +339,7 @@ mapAliases ({
|
|||
fastnlo = throw "'fastnlo' has been renamed to/replaced by 'fastnlo_toolkit'"; # Converted to throw 2022-09-24
|
||||
fbreader = throw "fbreader has been removed, as the upstream project has been archived"; # Added 2022-05-26
|
||||
feedreader = throw "feedreader is no longer activily maintained since 2019. The developer is working on a spiritual successor called NewsFlash."; # Added 2022-05-03
|
||||
inherit (luaPackages) fennel; # Added 2022-09-24
|
||||
fetchFromGithub = throw "You meant fetchFromGitHub, with a capital H"; # preserve
|
||||
ffadoFull = throw "'ffadoFull' has been renamed to/replaced by 'ffado'"; # Converted to throw 2022-02-22
|
||||
ffmpeg-sixel = throw "ffmpeg-sixel has been removed, because it was an outdated/unmaintained fork of ffmpeg"; # Added 2022-03-23";
|
||||
|
|
|
@ -13394,8 +13394,6 @@ with pkgs;
|
|||
|
||||
fasmg = callPackage ../development/compilers/fasmg { };
|
||||
|
||||
fennel = callPackage ../development/compilers/fennel { };
|
||||
|
||||
firrtl = callPackage ../development/compilers/firrtl { };
|
||||
|
||||
flasm = callPackage ../development/compilers/flasm { };
|
||||
|
|
Loading…
Reference in a new issue