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