nixpkgs/pkgs/applications/audio/redoflacs/default.nix
Jörg Thalheim 6baecc0abb
aucdtect: remove (#107611)
* aucdtect: remove

* Update pkgs/top-level/aliases.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

Co-authored-by: Peter Hoeg <peter@hoeg.com>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2020-12-28 09:26:52 +08:00

48 lines
1.0 KiB
Nix

{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, installShellFiles
, flac
, sox
}:
stdenv.mkDerivation rec {
pname = "redoflacs";
version = "0.30.20190903";
src = fetchFromGitHub {
owner = "sirjaren";
repo = "redoflacs";
rev = "4ca544cbc075d0865884906208cb2b8bc318cf9e";
sha256 = "19lcl09d4ngz2zzwd8dnnxx41ddvznhar6ggrlf1xvkr5gd7lafp";
};
dontBuild = true;
nativeBuildInputs = [ installShellFiles makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin redoflacs
install -Dm644 -t $out/share/doc/redoflacs LICENSE *.md
installManPage redoflacs.1
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/redoflacs \
--prefix PATH : ${stdenv.lib.makeBinPath ([ flac sox ])}
'';
meta = with lib; {
description = "Parallel BASH commandline FLAC compressor, verifier, organizer, analyzer, and retagger";
homepage = src.meta.homepage;
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.all;
};
}