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
58
pkgs/games/tuxpaint/default.nix
Normal file
58
pkgs/games/tuxpaint/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib, stdenv, fetchurl, SDL, SDL_gfx, SDL_image, SDL_ttf, SDL_mixer, libpng
|
||||
, libimagequant, cairo, librsvg, gettext, libpaper, fribidi, pkg-config, gperf
|
||||
, imagemagick
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.9.27";
|
||||
pname = "tuxpaint";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/tuxpaint/${version}/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-qyuA6J34gijNDsCmyQtJ1UPLFXqjj7kMvTop8AFAVXo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
SDL SDL_gfx SDL_image SDL_ttf SDL_mixer libpng cairo libimagequant librsvg
|
||||
gettext libpaper fribidi pkg-config gperf imagemagick
|
||||
];
|
||||
hardeningDisable = [ "format" ];
|
||||
makeFlags = [ "GPERF=${gperf}/bin/gperf"
|
||||
"PREFIX=$$out"
|
||||
"COMPLETIONDIR=$$out/share/bash-completion/completions"
|
||||
];
|
||||
|
||||
patches = [ ./tuxpaint-completion.diff ];
|
||||
postPatch = ''
|
||||
grep -Zlr include.*SDL . | xargs -0 sed -i -e 's,"SDL,"SDL/SDL,'
|
||||
'';
|
||||
|
||||
# stamps
|
||||
stamps = fetchurl {
|
||||
url = "mirror://sourceforge/project/tuxpaint/tuxpaint-stamps/2021-11-25/tuxpaint-stamps-2021.11.25.tar.gz";
|
||||
sha256 = "sha256-y1XuIbLSW0QO4has+rC7jZBq8cma28d+jbEe7DBYnVI=";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
# Install desktop file
|
||||
mkdir -p $out/share/applications
|
||||
cp hildon/tuxpaint.xpm $out/share/pixmaps
|
||||
sed -e "s+Exec=tuxpaint+Exec=$out/bin/tuxpaint+" < src/tuxpaint.desktop > $out/share/applications/tuxpaint.desktop
|
||||
|
||||
# Install stamps
|
||||
tar xzf $stamps
|
||||
cd tuxpaint-stamps-*
|
||||
make install-all PREFIX=$out
|
||||
rm -rf $out/share/tuxpaint/stamps/military
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Open Source Drawing Software for Children";
|
||||
homepage = "http://www.tuxpaint.org/";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = with lib.maintainers; [ woffs ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
16
pkgs/games/tuxpaint/tuxpaint-completion.diff
Normal file
16
pkgs/games/tuxpaint/tuxpaint-completion.diff
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
--- tuxpaint-0.9.22/src/tuxpaint-completion.bash~ 1970-01-01 01:00:01.000000000 +0100
|
||||
+++ tuxpaint-0.9.22/src/tuxpaint-completion.bash 2018-03-06 10:54:03.437560921 +0100
|
||||
@@ -8,7 +8,6 @@
|
||||
# FIXME: See http://www.debian-administration.org/articles/316 for an intro
|
||||
# to how we should be doing this... -bjk 2009.09.09
|
||||
|
||||
-have tuxpaint &&
|
||||
_tuxpaint()
|
||||
{
|
||||
local cur
|
||||
@@ -96,4 +95,4 @@
|
||||
fi
|
||||
|
||||
}
|
||||
-[ "${have:-}" ] && complete -F _tuxpaint $filenames tuxpaint
|
||||
+complete -F _tuxpaint $filenames tuxpaint
|
||||
Loading…
Add table
Add a link
Reference in a new issue