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
68
pkgs/tools/audio/opl3bankeditor/common.nix
Normal file
68
pkgs/tools/audio/opl3bankeditor/common.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ pname, chip, version, sha256, extraPatches ? [] }:
|
||||
|
||||
{ mkDerivation
|
||||
, stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, dos2unix
|
||||
, cmake
|
||||
, pkg-config
|
||||
, qttools
|
||||
, qtbase
|
||||
, qwt6_1
|
||||
, rtaudio
|
||||
, rtmidi
|
||||
}:
|
||||
|
||||
let
|
||||
binname = "${chip} Bank Editor";
|
||||
mainProgram = "${lib.strings.toLower chip}_bank_editor";
|
||||
in
|
||||
mkDerivation rec {
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Wohlstand";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
dos2unix CMakeLists.txt
|
||||
'';
|
||||
|
||||
patches = extraPatches;
|
||||
|
||||
nativeBuildInputs = [
|
||||
dos2unix
|
||||
cmake
|
||||
pkg-config
|
||||
qttools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qwt6_1
|
||||
rtaudio
|
||||
rtmidi
|
||||
];
|
||||
|
||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
mkdir $out/{bin,Applications}
|
||||
mv "${binname}.app" $out/Applications/
|
||||
|
||||
install_name_tool -change {,${qwt6_1}/lib/}libqwt.6.dylib "$out/Applications/${binname}.app/Contents/MacOS/${binname}"
|
||||
|
||||
ln -s "$out/Applications/${binname}.app/Contents/MacOS/${binname}" $out/bin/${mainProgram}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit mainProgram;
|
||||
description = "A small cross-platform editor of the ${chip} FM banks of different formats";
|
||||
homepage = src.meta.homepage;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ OPNA2608 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue