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/applications/audio/milkytracker/default.nix
Normal file
41
pkgs/applications/audio/milkytracker/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, makeWrapper
|
||||
, SDL2, alsa-lib, libjack2, lhasa, perl, rtmidi, zlib, zziplib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.03.00";
|
||||
pname = "milkytracker";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "milkytracker";
|
||||
repo = "MilkyTracker";
|
||||
rev = "v${version}";
|
||||
sha256 = "025fj34gq2kmkpwcswcyx7wdxb89vm944dh685zi4bxx0hz16vvk";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/milkytracker/MilkyTracker/issues/262
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'CMAKE_CXX_STANDARD 98' 'CMAKE_CXX_STANDARD 11'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
||||
|
||||
buildInputs = [ SDL2 alsa-lib libjack2 lhasa perl rtmidi zlib zziplib ];
|
||||
|
||||
# Somehow this does not get set automatically
|
||||
cmakeFlags = [ "-DSDL2MAIN_LIBRARY=${SDL2}/lib/libSDL2.so" ];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 $src/resources/milkytracker.desktop $out/share/applications/milkytracker.desktop
|
||||
install -Dm644 $src/resources/pictures/carton.png $out/share/pixmaps/milkytracker.png
|
||||
install -Dm644 $src/resources/milkytracker.appdata $out/share/appdata/milkytracker.appdata.xml
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Music tracker application, similar to Fasttracker II";
|
||||
homepage = "https://milkytracker.org/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" "i686-linux" ];
|
||||
maintainers = with maintainers; [];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue