nixpkgs/pkgs/applications/audio/rubyripper/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

43 lines
909 B
Nix

{ lib, stdenv, fetchFromGitHub, makeWrapper
, cdparanoia, cddiscid, ruby }:
stdenv.mkDerivation rec {
version = "0.8.0rc3";
pname = "rubyripper";
src = fetchFromGitHub {
owner = "bleskodev";
repo = pname;
rev = "v${version}";
sha256 = "1qfwv8bgc9pyfh3d40bvyr9n7sjc2na61481693wwww640lm0f9f";
};
preConfigure = "patchShebangs .";
configureFlags = [ "--enable-cli" ];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
cddiscid
cdparanoia
ruby
];
postInstall = ''
cp -r share $out/
'';
postFixup = ''
wrapProgram $out/bin/rrip_cli \
--prefix PATH : ${lib.makeBinPath [ cddiscid cdparanoia ruby ]}
'';
meta = with lib; {
description = "High quality CD audio ripper";
mainProgram = "rrip_cli";
platforms = platforms.linux;
license = licenses.gpl3Plus;
homepage = "https://github.com/bleskodev/rubyripper";
};
}