uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
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.2";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~technomancy";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-ZuSXeAhxfH0F/Y0nwqisxLMwh21Kub7viNcXD3FVYOc=";
|
||||
};
|
||||
|
||||
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 = with maintainers; [ gpanders chiroptical ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue