Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 36 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl, fetchpatch, yasm }: 2 3stdenv.mkDerivation rec { 4 pname = "mac"; 5 version = "4.11-u4-b5-s7"; 6 7 src = fetchurl { 8 url = "https://www.deb-multimedia.org/pool/main/m/monkeys-audio/monkeys-audio_${version}.orig.tar.gz"; 9 sha256 = "16i96cw5r3xbsivjigqp15vv32wa38k86mxq11qx1pzmpryqpqkk"; 10 }; 11 12 patches = [ 13 (fetchpatch { 14 name = "mac-4.11.4.5.7-gcc6.patch"; 15 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/mac/files/mac-4.11.4.5.7-gcc6.patch?id=1bd4e0e30e4d8a8862217d7067323851b34c7fe4"; 16 sha256 = "093b8m8p8s6dmc62fc8vb4hlmjc2ncb4rdgc82g0a8gg6w5kcj8x"; 17 }) 18 (fetchpatch { 19 name = "mac-4.11.4.5.7-output.patch"; 20 url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/mac/files/mac-4.11.4.5.7-output.patch?id=1bd4e0e30e4d8a8862217d7067323851b34c7fe4"; 21 sha256 = "0njmwj6d9jqi4pz4fax02w37gk22vda0grszrs2nn97zzmjl36zk"; 22 }) 23 ]; 24 25 CXXFLAGS = "-DSHNTOOL"; 26 27 nativeBuildInputs = [ yasm ]; 28 29 meta = with lib; { 30 description = "APE codec and decompressor"; 31 homepage = "https://www.deb-multimedia.org/dists/testing/main/binary-amd64/package/monkeys-audio.php"; 32 license = licenses.unfreeRedistributable; 33 platforms = [ "x86_64-linux" ]; 34 maintainers = with maintainers; [ ]; 35 }; 36}