2017-03-10 17:39:40 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }:
|
2005-01-19 21:02:19 +00:00
|
|
|
|
2011-07-25 14:52:36 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cdparanoia-III-10.2";
|
2015-04-09 01:42:58 +01:00
|
|
|
|
2005-01-19 21:02:19 +00:00
|
|
|
src = fetchurl {
|
2011-07-25 14:52:36 +01:00
|
|
|
url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz";
|
|
|
|
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
|
2005-01-19 21:02:19 +00:00
|
|
|
};
|
2014-12-17 18:11:30 +00:00
|
|
|
|
2016-01-03 23:49:09 +00:00
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [
|
2015-04-09 01:42:58 +01:00
|
|
|
(fetchurl {
|
|
|
|
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
|
2017-02-27 10:25:49 +00:00
|
|
|
sha256 = "1n86kzm2ssl8fdf5wlhp6ncb2bf6b9xlb5vg0mhc85r69prqzjiy";
|
2015-04-09 01:42:58 +01:00
|
|
|
})
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
|
2017-02-27 10:25:49 +00:00
|
|
|
sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad";
|
2015-04-09 01:42:58 +01:00
|
|
|
})
|
2018-03-13 14:07:49 +00:00
|
|
|
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./utils.patch
|
|
|
|
++ [./fix_private_keyword.patch];
|
2015-04-09 01:42:58 +01:00
|
|
|
|
2019-05-06 22:33:41 +01:00
|
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook;
|
2017-03-10 17:39:40 +00:00
|
|
|
|
2016-09-14 07:12:22 +01:00
|
|
|
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
2016-01-03 23:49:09 +00:00
|
|
|
Carbon
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
2017-03-10 17:39:40 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2019-05-06 22:33:41 +01:00
|
|
|
preConfigure = "unset CC" + stdenv.lib.optionalString stdenv.isAarch64 '';
|
2017-03-10 17:39:40 +00:00
|
|
|
cp ${gnu-config}/config.sub configure.sub
|
|
|
|
cp ${gnu-config}/config.guess configure.guess
|
|
|
|
'';
|
|
|
|
|
2018-08-22 23:04:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xiph.org/paranoia";
|
2011-07-25 14:52:36 +01:00
|
|
|
description = "A tool and library for reading digital audio from CDs";
|
2018-08-22 23:04:35 +01:00
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
|
|
|
platforms = platforms.unix;
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2005-01-19 21:02:19 +00:00
|
|
|
}
|