2016-08-14 13:06:42 +02:00
|
|
|
{ stdenv, fetchgit, pythonPackages, cdparanoia, cdrdao
|
2017-02-26 21:25:29 +01:00
|
|
|
, gst-python, gst-plugins-base, gst-plugins-good
|
2016-08-14 13:06:42 +02:00
|
|
|
, utillinux, makeWrapper, substituteAll, autoreconfHook }:
|
2014-11-02 00:11:11 +01:00
|
|
|
|
2016-08-14 13:06:42 +02:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
in stdenv.mkDerivation rec {
|
2014-11-02 00:11:11 +01:00
|
|
|
name = "morituri-${version}";
|
2015-11-28 08:29:42 +01:00
|
|
|
version = "0.2.3.20151109";
|
2014-12-23 13:13:19 +01:00
|
|
|
namePrefix = "";
|
2014-11-02 00:11:11 +01:00
|
|
|
|
2015-11-28 08:29:42 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/thomasvs/morituri.git";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
rev = "135b2f7bf27721177e3aeb1d26403f1b29116599";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "1sl5y5j3gdbynf2v0gf9dwd2hzawj8lm8ywadid7qm34yn8lx12k";
|
2014-11-02 00:11:11 +01:00
|
|
|
};
|
|
|
|
|
2016-08-14 13:06:42 +02:00
|
|
|
pythonPath = with pythonPackages; [
|
2017-02-26 20:30:00 +01:00
|
|
|
pygobject2 gst-python musicbrainzngs
|
2016-08-14 13:06:42 +02:00
|
|
|
pycdio pyxdg setuptools
|
|
|
|
CDDB
|
2014-11-02 00:11:11 +01:00
|
|
|
];
|
|
|
|
|
2015-11-28 08:29:42 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2014-11-02 00:11:11 +01:00
|
|
|
buildInputs = [
|
|
|
|
python cdparanoia cdrdao utillinux makeWrapper
|
2017-02-26 21:25:29 +01:00
|
|
|
gst-plugins-base gst-plugins-good
|
2014-11-02 00:11:11 +01:00
|
|
|
] ++ pythonPath;
|
|
|
|
|
2014-12-23 13:13:19 +01:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./paths.patch;
|
|
|
|
inherit cdrdao cdparanoia python utillinux;
|
|
|
|
})
|
|
|
|
];
|
2014-11-02 00:11:11 +01:00
|
|
|
|
|
|
|
# This package contains no binaries to patch or strip.
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/rip" \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://thomas.apestaart.org/morituri/trac/;
|
|
|
|
description = "A CD ripper aiming for accuracy over speed";
|
2015-06-22 08:25:07 +02:00
|
|
|
maintainers = with maintainers; [ rycee jgeerds ];
|
2014-11-02 00:11:11 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2016-01-25 23:13:12 +01:00
|
|
|
platforms = platforms.linux;
|
2014-11-02 00:11:11 +01:00
|
|
|
};
|
|
|
|
}
|