Merge pull request #161591 from rileyinman/rubyripper-update
rubyripper: 0.6.2 -> 0.8.0rc3
This commit is contained in:
commit
b007a4e702
1 changed files with 23 additions and 11 deletions
|
@ -1,26 +1,38 @@
|
||||||
{ lib, stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||||
|
, cdparanoia, cddiscid, ruby }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.6.2";
|
version = "0.8.0rc3";
|
||||||
pname = "rubyripper";
|
pname = "rubyripper";
|
||||||
src = fetchurl {
|
|
||||||
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
|
src = fetchFromGitHub {
|
||||||
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
|
owner = "bleskodev";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1qfwv8bgc9pyfh3d40bvyr9n7sjc2na61481693wwww640lm0f9f";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = "patchShebangs .";
|
preConfigure = "patchShebangs .";
|
||||||
|
|
||||||
configureFlags = [ "--enable-cli" ];
|
configureFlags = [ "--enable-cli" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ ruby cdparanoia ];
|
|
||||||
postInstall = ''
|
buildInputs = [
|
||||||
wrapProgram "$out/bin/rrip_cli" \
|
cddiscid
|
||||||
--prefix PATH : "${ruby}/bin" \
|
cdparanoia
|
||||||
--prefix PATH : "${cdparanoia}/bin"
|
ruby
|
||||||
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/rrip_cli \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High quality CD audio ripper";
|
description = "High quality CD audio ripper";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
|
homepage = "https://github.com/bleskodev/rubyripper";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue