lol
1{ stdenv, fetchgit, pythonPackages, cdparanoia, cdrdao
2, gst-python, gst-plugins-base, gst-plugins-good
3, utillinux, makeWrapper, substituteAll, autoreconfHook }:
4
5let
6 inherit (pythonPackages) python;
7in stdenv.mkDerivation rec {
8 name = "morituri-${version}";
9 version = "0.2.3.20151109";
10 namePrefix = "";
11
12 src = fetchgit {
13 url = "https://github.com/thomasvs/morituri.git";
14 fetchSubmodules = true;
15 rev = "135b2f7bf27721177e3aeb1d26403f1b29116599";
16 sha256 = "1sl5y5j3gdbynf2v0gf9dwd2hzawj8lm8ywadid7qm34yn8lx12k";
17 };
18
19 pythonPath = with pythonPackages; [
20 pygobject2 gst-python musicbrainzngs
21 pycdio pyxdg setuptools
22 CDDB
23 ];
24
25 nativeBuildInputs = [ autoreconfHook ];
26 buildInputs = [
27 python cdparanoia cdrdao utillinux makeWrapper
28 gst-plugins-base gst-plugins-good
29 ] ++ pythonPath;
30
31 patches = [
32 (substituteAll {
33 src = ./paths.patch;
34 inherit cdrdao cdparanoia python utillinux;
35 })
36 ];
37
38 # This package contains no binaries to patch or strip.
39 dontPatchELF = true;
40 dontStrip = true;
41
42 postInstall = ''
43 wrapProgram "$out/bin/rip" \
44 --prefix PYTHONPATH : "$PYTHONPATH" \
45 --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
46 '';
47
48 meta = with stdenv.lib; {
49 homepage = http://thomas.apestaart.org/morituri/trac/;
50 description = "A CD ripper aiming for accuracy over speed";
51 maintainers = with maintainers; [ rycee jgeerds ];
52 license = licenses.gpl3Plus;
53 platforms = platforms.linux;
54 };
55}