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
40
pkgs/games/kabeljau/default.nix
Normal file
40
pkgs/games/kabeljau/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ stdenvNoCC, lib, fetchFromGitea, just, inkscape, makeWrapper, bash, dialog }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "kabeljau";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "papojari";
|
||||
repo = "kabeljau";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-RedVItgfr6vgqXHA3bOiHXDpfGuHI+sX4jCHL9G5jYk=";
|
||||
};
|
||||
|
||||
# Inkscape is needed in a just recipe where it is used to export the SVG icon to several different sized PNGs.
|
||||
nativeBuildInputs = [ just inkscape makeWrapper ];
|
||||
postPatch = ''
|
||||
patchShebangs --host ${pname}
|
||||
substituteInPlace ./justfile \
|
||||
--replace " /bin" " $out/bin" \
|
||||
--replace " /usr" " $out"
|
||||
'';
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
just install
|
||||
wrapProgram $out/bin/${pname} --suffix PATH : ${
|
||||
lib.makeBinPath [ dialog ]
|
||||
}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Survive as a stray cat in an ncurses game";
|
||||
homepage = "https://codeberg.org/papojari/kabeljau";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ papojari ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue