2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
2013-09-25 13:05:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.6.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "rubyripper";
|
2013-09-25 13:05:54 +01: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 13:05:54 +01:00
|
|
|
configureFlags = [ "--enable-cli" ];
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ ruby cdparanoia ];
|
2013-09-25 13:05:54 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/rrip_cli" \
|
|
|
|
--prefix PATH : "${ruby}/bin" \
|
|
|
|
--prefix PATH : "${cdparanoia}/bin"
|
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-11 11:03:41 +01:00
|
|
|
description = "High quality CD audio ripper";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2013-09-25 13:05:54 +01:00
|
|
|
}
|