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
|
|
@ -0,0 +1,39 @@
|
|||
From eb21fd64a19a0e10c4c3826fc71610fd5850fa2f Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Neidahl <christoph.neidahl@gmail.com>
|
||||
Date: Sun, 13 Sep 2020 23:18:51 +0200
|
||||
Subject: [PATCH 1/2] Drop baked-in build date for r13y
|
||||
|
||||
---
|
||||
src/ct2util.d | 2 +-
|
||||
src/ui/ui.d | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/ct2util.d b/src/ct2util.d
|
||||
index 523cadc..e462b09 100644
|
||||
--- a/src/ct2util.d
|
||||
+++ b/src/ct2util.d
|
||||
@@ -105,7 +105,7 @@ int main(string[] args) {
|
||||
speeds.length = 32;
|
||||
masks.length = 32;
|
||||
void printheader() {
|
||||
- enum hdr = "CheeseCutter 2 utilities" ~ com.util.versionInfo;
|
||||
+ enum hdr = "CheeseCutter 2 utilities";
|
||||
writefln(hdr);
|
||||
writefln("\nUsage: \t%s <command> <options> <infile> <-o outfile>",args[0]);
|
||||
writefln("\t%s import <infile> <infile2> <-o outfile>",args[0]);
|
||||
diff --git a/src/ui/ui.d b/src/ui/ui.d
|
||||
index e418dda..21af408 100644
|
||||
--- a/src/ui/ui.d
|
||||
+++ b/src/ui/ui.d
|
||||
@@ -231,7 +231,7 @@ class Infobar : Window {
|
||||
|
||||
screen.clrtoeol(0, headerColor);
|
||||
|
||||
- enum hdr = "CheeseCutter 2.9" ~ com.util.versionInfo;
|
||||
+ enum hdr = "CheeseCutter 2.9";
|
||||
screen.cprint(4, 0, 1, headerColor, hdr);
|
||||
screen.cprint(screen.width - 14, 0, 1, headerColor, "F12 = Help");
|
||||
int c1 = audio.player.isPlaying ? 13 : 12;
|
||||
--
|
||||
2.25.4
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From abc5e8786d41803300b56ef40c08db0d867eb01a Mon Sep 17 00:00:00 2001
|
||||
From: Christoph Neidahl <christoph.neidahl@gmail.com>
|
||||
Date: Sun, 13 Sep 2020 23:22:33 +0200
|
||||
Subject: [PATCH 2/2] Prepend libSDL.dylib to macOS SDL loader
|
||||
|
||||
---
|
||||
src/derelict/sdl/sdl.d | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/derelict/sdl/sdl.d b/src/derelict/sdl/sdl.d
|
||||
index e31a52f..f7915b1 100644
|
||||
--- a/src/derelict/sdl/sdl.d
|
||||
+++ b/src/derelict/sdl/sdl.d
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
super(
|
||||
"sdl.dll",
|
||||
"libSDL.so, libSDL.so.0, libSDL-1.2.so, libSDL-1.2.so.0",
|
||||
- "@executable_path/../Frameworks/SDL.framework/SDL, /Library/Frameworks/SDL.framework/SDL, /System/Library/Frameworks/SDL.framework/SDL"
|
||||
+ "@rpath/libSDL.dylib, @executable_path/../Frameworks/SDL.framework/SDL, /Library/Frameworks/SDL.framework/SDL, /System/Library/Frameworks/SDL.framework/SDL"
|
||||
);
|
||||
}
|
||||
|
||||
--
|
||||
2.25.4
|
||||
|
||||
59
pkgs/applications/audio/cheesecutter/default.nix
Normal file
59
pkgs/applications/audio/cheesecutter/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, acme
|
||||
, ldc
|
||||
, patchelf
|
||||
, SDL
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cheesecutter";
|
||||
version = "unstable-2021-02-27";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "theyamo";
|
||||
repo = "CheeseCutter";
|
||||
rev = "84450d3614b8fb2cabda87033baab7bedd5a5c98";
|
||||
sha256 = "sha256:0q4a791nayya6n01l0f4kk497rdq6kiq0n72fqdpwqy138pfwydn";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-Drop-baked-in-build-date-for-r13y.patch
|
||||
]
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin ./0002-Prepend-libSDL.dylib-to-macOS-SDL-loader.patch;
|
||||
|
||||
nativeBuildInputs = [ acme ldc ]
|
||||
++ lib.optional (!stdenv.hostPlatform.isDarwin) patchelf;
|
||||
|
||||
buildInputs = [ SDL ];
|
||||
|
||||
makefile = "Makefile.ldc";
|
||||
|
||||
installPhase = ''
|
||||
for exe in {ccutter,ct2util}; do
|
||||
install -D $exe $out/bin/$exe
|
||||
done
|
||||
|
||||
mkdir -p $out/share/cheesecutter/example_tunes
|
||||
cp -r tunes/* $out/share/cheesecutter/example_tunes
|
||||
'';
|
||||
|
||||
postFixup =
|
||||
let
|
||||
rpathSDL = lib.makeLibraryPath [ SDL ];
|
||||
in
|
||||
if stdenv.hostPlatform.isDarwin then ''
|
||||
install_name_tool -add_rpath ${rpathSDL} $out/bin/ccutter
|
||||
'' else ''
|
||||
rpath=$(patchelf --print-rpath $out/bin/ccutter)
|
||||
patchelf --set-rpath "$rpath:${rpathSDL}" $out/bin/ccutter
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tracker program for composing music for the SID chip";
|
||||
homepage = "https://github.com/theyamo/CheeseCutter/";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue