2016-01-04 02:49:09 +03:00
|
|
|
{ stdenv, fetchurl, IOKit, Carbon }:
|
2005-01-20 00:02:19 +03:00
|
|
|
|
2011-07-25 17:52:36 +04:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cdparanoia-III-10.2";
|
2015-04-09 03:42:58 +03:00
|
|
|
|
2005-01-20 00:02:19 +03:00
|
|
|
src = fetchurl {
|
2011-07-25 17:52:36 +04:00
|
|
|
url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz";
|
|
|
|
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
|
2005-01-20 00:02:19 +03:00
|
|
|
};
|
2014-12-17 21:11:30 +03:00
|
|
|
|
2016-02-26 20:38:15 +03:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-23 04:59:47 +03:00
|
|
|
|
2014-12-17 21:11:30 +03:00
|
|
|
preConfigure = "unset CC";
|
2015-04-09 03:42:58 +03:00
|
|
|
|
2016-01-04 02:49:09 +03:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
2015-04-09 03:42:58 +03:00
|
|
|
(fetchurl {
|
|
|
|
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
|
2017-02-27 13:25:49 +03:00
|
|
|
sha256 = "1n86kzm2ssl8fdf5wlhp6ncb2bf6b9xlb5vg0mhc85r69prqzjiy";
|
2015-04-09 03:42:58 +03:00
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
|
2017-02-27 13:25:49 +03:00
|
|
|
sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad";
|
2015-04-09 03:42:58 +03:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-14 09:12:22 +03:00
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
2016-01-04 02:49:09 +03:00
|
|
|
Carbon
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
2008-01-30 22:49:42 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://xiph.org/paranoia;
|
2011-07-25 17:52:36 +04:00
|
|
|
description = "A tool and library for reading digital audio from CDs";
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-01-30 22:49:42 +03:00
|
|
|
};
|
2005-01-20 00:02:19 +03:00
|
|
|
}
|