3
0
Fork 0
forked from mirrors/nixpkgs

rubyripper: 0.6.2 -> 0.8.0rc3

This commit is contained in:
Riley Inman 2022-02-23 01:14:45 -05:00
parent 2d67cc2bf6
commit 8032f355a0

View file

@ -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";
}; };
} }