mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #132612 from gpanders/fnlfmt
This commit is contained in:
commit
c838478c26
@ -4007,6 +4007,16 @@
|
|||||||
fingerprint = "5214 2D39 A7CE F8FA 872B CA7F DE62 E1E2 A614 5556";
|
fingerprint = "5214 2D39 A7CE F8FA 872B CA7F DE62 E1E2 A614 5556";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
gpanders = {
|
||||||
|
name = "Gregory Anders";
|
||||||
|
email = "greg@gpanders.com";
|
||||||
|
github = "gpanders";
|
||||||
|
githubId = 8965202;
|
||||||
|
keys = [{
|
||||||
|
longkeyid = "rsa2048/0x56E93C2FB6B08BDB";
|
||||||
|
fingerprint = "B9D5 0EDF E95E ECD0 C135 00A9 56E9 3C2F B6B0 8BDB";
|
||||||
|
}];
|
||||||
|
};
|
||||||
gpyh = {
|
gpyh = {
|
||||||
email = "yacine.hmito@gmail.com";
|
email = "yacine.hmito@gmail.com";
|
||||||
github = "yacinehmito";
|
github = "yacinehmito";
|
||||||
|
41
pkgs/development/tools/fnlfmt/default.nix
Normal file
41
pkgs/development/tools/fnlfmt/default.nix
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{ lib, stdenv, fetchFromSourcehut, fennel, lua }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "fnlfmt";
|
||||||
|
version = "0.2.1";
|
||||||
|
|
||||||
|
src = fetchFromSourcehut {
|
||||||
|
owner = "~technomancy";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-JIqeQhI3fFGrej2wbj6/367IZqWAFegySc2R8IDmvGE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ fennel ];
|
||||||
|
|
||||||
|
buildInputs = [ lua ];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
echo "#!${lua}/bin/lua" > fnlfmt
|
||||||
|
${fennel}/bin/fennel --require-as-include --compile cli.fnl >> fnlfmt
|
||||||
|
chmod +x fnlfmt
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -D ./fnlfmt $out/bin/fnlfmt
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Formatter for Fennel";
|
||||||
|
homepage = "https://git.sr.ht/~technomancy/fnlfmt";
|
||||||
|
license = licenses.lgpl3Plus;
|
||||||
|
platforms = lua.meta.platforms;
|
||||||
|
maintainers = [ maintainers.gpanders ];
|
||||||
|
};
|
||||||
|
}
|
@ -10917,6 +10917,8 @@ in
|
|||||||
recurseIntoAttrs (callPackage ../development/compilers/flutter { });
|
recurseIntoAttrs (callPackage ../development/compilers/flutter { });
|
||||||
flutter = flutterPackages.stable;
|
flutter = flutterPackages.stable;
|
||||||
|
|
||||||
|
fnlfmt = callPackage ../development/tools/fnlfmt { };
|
||||||
|
|
||||||
fpc = callPackage ../development/compilers/fpc { };
|
fpc = callPackage ../development/compilers/fpc { };
|
||||||
|
|
||||||
g203-led = callPackage ../tools/misc/g203-led { };
|
g203-led = callPackage ../tools/misc/g203-led { };
|
||||||
|
Loading…
Reference in New Issue
Block a user