2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
2013-09-25 14:05:54 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.6.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rubyripper";
|
2013-09-25 14:05:54 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
|
|
|
|
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
|
|
|
|
};
|
2016-03-04 01:42:43 +01:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
2013-09-25 14:05:54 +02:00
|
|
|
configureFlags = [ "--enable-cli" ];
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ruby cdparanoia ];
|
2013-09-25 14:05:54 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/rrip_cli" \
|
|
|
|
--prefix PATH : "${ruby}/bin" \
|
|
|
|
--prefix PATH : "${cdparanoia}/bin"
|
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-11 12:03:41 +02:00
|
|
|
description = "High quality CD audio ripper";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2013-09-25 14:05:54 +02:00
|
|
|
}
|