2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.6.2";
|
|
|
|
pname = "rubyripper";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
|
|
|
|
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-cli" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ruby cdparanoia ];
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/rrip_cli" \
|
|
|
|
--prefix PATH : "${ruby}/bin" \
|
|
|
|
--prefix PATH : "${cdparanoia}/bin"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "High quality CD audio ripper";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|