2013-09-25 16:05:54 +04:00
|
|
|
{ stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.6.2";
|
|
|
|
name = "rubyripper-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
|
|
|
|
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
|
|
|
|
};
|
2016-03-04 03:42:43 +03:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
2013-09-25 16:05:54 +04:00
|
|
|
configureFlags = [ "--enable-cli" ];
|
|
|
|
buildInputs = [ ruby cdparanoia makeWrapper ];
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/rrip_cli" \
|
|
|
|
--prefix PATH : "${ruby}/bin" \
|
|
|
|
--prefix PATH : "${cdparanoia}/bin"
|
|
|
|
'';
|
2016-08-02 19:06:29 +03:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2013-09-25 16:05:54 +04:00
|
|
|
}
|