nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 51 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libsndfile, 7 portaudio, 8 gtk2, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "gnaural"; 13 version = "20110606"; 14 15 src = fetchurl { 16 url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz"; 17 hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8="; 18 }; 19 20 nativeBuildInputs = [ pkg-config ]; 21 buildInputs = [ 22 gtk2 23 libsndfile 24 portaudio 25 ]; 26 27 # Workaround build failure on -fno-common toolchains: 28 # ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint'; 29 # src/net/../../src/gnauralnet.h:233: first defined here 30 env.NIX_CFLAGS_COMPILE = "-fcommon"; 31 32 postInstall = '' 33 mkdir -p $out/share/applications 34 substitute \ 35 $out/share/gnome/apps/Multimedia/gnaural.desktop \ 36 $out/share/applications/gnaural.desktop \ 37 --replace \ 38 "/usr/share/gnaural/pixmaps/gnaural-icon.png" \ 39 "$out/share/gnaural/pixmaps/gnaural-icon.png" \ 40 41 rm -rf $out/share/gnome 42 ''; 43 44 meta = with lib; { 45 description = "Programmable auditory binaural-beat synthesizer"; 46 homepage = "https://gnaural.sourceforge.net/"; 47 maintainers = with maintainers; [ ehmry ]; 48 license = with licenses; [ gpl2Only ]; 49 mainProgram = "gnaural"; 50 }; 51}