mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
996 B
Nix
36 lines
996 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, bc, findutils, flac, lame, opusTools, procps, sox }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "caudec";
|
|
version = "1.7.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://caudec.cocatre.net/downloads/caudec-${version}.tar.gz";
|
|
sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
|
|
};
|
|
|
|
preBuild = ''
|
|
patchShebangs ./install.sh
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
./install.sh --prefix=$out/bin
|
|
'';
|
|
|
|
postFixup = ''
|
|
for executable in $(cd $out/bin && ls); do
|
|
wrapProgram $out/bin/$executable \
|
|
--prefix PATH : "${lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://caudec.cocatre.net/";
|
|
description = "Multiprocess audio converter that supports many formats (FLAC, MP3, Ogg Vorbis, Windows codecs and many more)";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|