1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/audio/cdparanoia/default.nix

37 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, IOKit, Carbon }:
stdenv.mkDerivation rec {
name = "cdparanoia-III-10.2";
2015-04-09 01:42:58 +01:00
src = fetchurl {
url = "http://downloads.xiph.org/releases/cdparanoia/${name}.src.tgz";
sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
};
hardeningDisable = [ "format" ];
2015-12-23 01:59:47 +00:00
preConfigure = "unset CC";
2015-04-09 01:42:58 +01: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";
sha1 = "c86e573f51e6d58d5f349b22802a7a7eeece9fcd";
})
(fetchurl {
url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
sha1 = "d7dc121374df3b82e82adf544df7bf1eec377bdb";
})
];
buildInputs = stdenv.lib.optional stdenv.isDarwin [
Carbon
IOKit
];
meta = {
homepage = http://xiph.org/paranoia;
description = "A tool and library for reading digital audio from CDs";
platforms = stdenv.lib.platforms.unix;
};
}