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