uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
68
pkgs/applications/audio/crip/default.nix
Normal file
68
pkgs/applications/audio/crip/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ lib, stdenv
|
||||
, fetchurl
|
||||
, makeWrapper
|
||||
|
||||
, perlPackages
|
||||
|
||||
, cdparanoia
|
||||
, coreutils
|
||||
, eject
|
||||
, flac
|
||||
, gnugrep
|
||||
, nano
|
||||
, sox
|
||||
, vorbis-tools
|
||||
, vorbisgain
|
||||
, which
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "crip";
|
||||
version = "3.9";
|
||||
src = fetchurl {
|
||||
url = "http://bach.dynet.com/${pname}/src/${pname}-${version}.tar.gz";
|
||||
sha256 = "0pk9152wll6fmkj1pki3fz3ijlf06jyk32v31yarwvdkwrk7s9xz";
|
||||
};
|
||||
|
||||
buildInputs = [ perlPackages.perl perlPackages.CDDB_get ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
toolDeps = makeBinPath [
|
||||
cdparanoia
|
||||
coreutils
|
||||
eject
|
||||
flac
|
||||
gnugrep
|
||||
sox
|
||||
vorbis-tools
|
||||
vorbisgain
|
||||
which
|
||||
];
|
||||
|
||||
scripts = [ "crip" "editcomment" "editfilenames" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin/
|
||||
|
||||
for script in ${escapeShellArgs scripts}; do
|
||||
cp $script $out/bin/
|
||||
|
||||
substituteInPlace $out/bin/$script \
|
||||
--replace '$editor = "vim";' '$editor = "${nano}/bin/nano";'
|
||||
|
||||
wrapProgram $out/bin/$script \
|
||||
--set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.CDDB_get ]}" \
|
||||
--set PATH "${toolDeps}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://bach.dynet.com/crip/";
|
||||
description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files";
|
||||
license = lib.licenses.gpl1;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ maintainers.endgame ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue