2022-03-05 16:20:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
|
|
|
, cdparanoia, cddiscid, ruby }:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "0.8.0rc3";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rubyripper";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bleskodev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qfwv8bgc9pyfh3d40bvyr9n7sjc2na61481693wwww640lm0f9f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-cli" ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cddiscid
|
|
|
|
cdparanoia
|
|
|
|
ruby
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/rrip_cli \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
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;
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
homepage = "https://github.com/bleskodev/rubyripper";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|