2022-02-23 06:14:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
|
|
|
, cdparanoia, cddiscid, ruby }:
|
|
|
|
|
2013-09-25 12:05:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-02-23 06:14:45 +00:00
|
|
|
version = "0.8.0rc3";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "rubyripper";
|
2022-02-23 06:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bleskodev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qfwv8bgc9pyfh3d40bvyr9n7sjc2na61481693wwww640lm0f9f";
|
2013-09-25 12:05:54 +00:00
|
|
|
};
|
2016-03-04 00:42:43 +00:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs .";
|
|
|
|
|
2013-09-25 12:05:54 +00:00
|
|
|
configureFlags = [ "--enable-cli" ];
|
2022-02-23 06:14:45 +00:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2022-02-23 06:14:45 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cddiscid
|
|
|
|
cdparanoia
|
|
|
|
ruby
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/rrip_cli \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]}
|
2013-09-25 12:05:54 +00:00
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-11 10:03:41 +00:00
|
|
|
description = "High quality CD audio ripper";
|
|
|
|
platforms = platforms.linux;
|
2022-02-23 06:14:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
homepage = "https://github.com/bleskodev/rubyripper";
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2013-09-25 12:05:54 +00:00
|
|
|
}
|