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
52
pkgs/applications/emulators/caprice32/default.nix
Normal file
52
pkgs/applications/emulators/caprice32/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenv, fetchFromGitHub, desktop-file-utils, libpng
|
||||
, pkg-config, SDL, freetype, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
||||
pname = "caprice32";
|
||||
version = "4.6.0";
|
||||
# NOTE: When bumping version beyond 4.6.0, you likely need to remove
|
||||
# string.patch below. The fix of this patch has already been
|
||||
# done upstream but is not yet part of a release
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "caprice32";
|
||||
rev = "v${version}";
|
||||
owner = "ColinPitrat";
|
||||
sha256 = "0hng5krwgc1h9bz1xlkp2hwnvas965nd7sb3z9mb2m6x9ghxlacz";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ desktop-file-utils pkg-config ];
|
||||
buildInputs = [ libpng SDL freetype zlib ];
|
||||
|
||||
patches = [ ./string.patch ];
|
||||
|
||||
makeFlags = [
|
||||
"APP_PATH=${placeholder "out"}/share/caprice32"
|
||||
"RELEASE=1"
|
||||
"DESTDIR=${placeholder "out"}"
|
||||
"prefix=/"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/icons/
|
||||
mv $out/share/caprice32/resources/freedesktop/caprice32.png $out/share/icons/
|
||||
mv $out/share/caprice32/resources/freedesktop/emulators.png $out/share/icons/
|
||||
|
||||
desktop-file-install --dir $out/share/applications \
|
||||
$out/share/caprice32/resources/freedesktop/caprice32.desktop
|
||||
|
||||
desktop-file-install --dir $out/share/desktop-directories \
|
||||
$out/share/caprice32/resources/freedesktop/Emulators.directory
|
||||
|
||||
install -Dm644 $out/share/caprice32/resources/freedesktop/caprice32.menu -t $out/etc/xdg/menus/applications-merged/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A complete emulation of CPC464, CPC664 and CPC6128";
|
||||
homepage = "https://github.com/ColinPitrat/caprice32";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
12
pkgs/applications/emulators/caprice32/string.patch
Normal file
12
pkgs/applications/emulators/caprice32/string.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/configuration.h b/src/configuration.h
|
||||
index 34fd690..97fb0e5 100644
|
||||
--- a/src/configuration.h
|
||||
+++ b/src/configuration.h
|
||||
@@ -2,6 +2,7 @@
|
||||
#define CONFIGURATION_H
|
||||
|
||||
#include <map>
|
||||
+#include <string>
|
||||
|
||||
namespace config
|
||||
{
|
||||
Loading…
Add table
Add a link
Reference in a new issue