evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ma / mac / package.nix
blobca58c20eab9b6ccf8667ac844b972e7dc3e85431
1 { lib, stdenv, fetchurl, fetchpatch, yasm }:
3 stdenv.mkDerivation rec {
4   pname = "mac";
5   version = "4.11-u4-b5-s7";
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   };
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   ];
25   CXXFLAGS = "-DSHNTOOL";
27   nativeBuildInputs = [ yasm ];
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 = [ ];
35   };