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
38
pkgs/applications/audio/gnaural/default.nix
Normal file
38
pkgs/applications/audio/gnaural/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, libsndfile, portaudio, gtk2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnaural";
|
||||
version = "20110606";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz";
|
||||
hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ gtk2 libsndfile portaudio ];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint';
|
||||
# src/net/../../src/gnauralnet.h:233: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
substitute \
|
||||
$out/share/gnome/apps/Multimedia/gnaural.desktop \
|
||||
$out/share/applications/gnaural.desktop \
|
||||
--replace \
|
||||
"/usr/share/gnaural/pixmaps/gnaural-icon.png" \
|
||||
"$out/share/gnaural/pixmaps/gnaural-icon.png" \
|
||||
|
||||
rm -rf $out/share/gnome
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Programmable auditory binaural-beat synthesizer";
|
||||
homepage = "http://gnaural.sourceforge.net/";
|
||||
maintainers = with maintainers; [ ehmry ];
|
||||
license = with licenses; [ gpl2Only ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue