3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/rubyripper/default.nix
Tuomas Tynkkynen 2258b21e4b treewide: Add lots of platforms to packages with no meta
Build-tested on x86_64 Linux and on Darwin.
2016-08-02 21:17:44 +03:00

24 lines
642 B
Nix

{ stdenv, fetchurl, ruby, cdparanoia, makeWrapper }:
stdenv.mkDerivation rec {
version = "0.6.2";
name = "rubyripper-${version}";
src = fetchurl {
url = "https://rubyripper.googlecode.com/files/rubyripper-${version}.tar.bz2";
sha256 = "1fwyk3y0f45l2vi3a481qd7drsy82ccqdb8g2flakv58m45q0yl1";
};
preConfigure = "patchShebangs .";
configureFlags = [ "--enable-cli" ];
buildInputs = [ ruby cdparanoia makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/rrip_cli" \
--prefix PATH : "${ruby}/bin" \
--prefix PATH : "${cdparanoia}/bin"
'';
meta = {
platforms = stdenv.lib.platforms.linux;
};
}