Merge pull request #132612 from gpanders/fnlfmt

This commit is contained in:
Sandro 2021-08-05 16:19:03 +02:00 committed by GitHub
commit c838478c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 0 deletions

View File

@ -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";

View 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 ];
};
}

View File

@ -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 { };