nixpkgs/pkgs/applications/audio/redoflacs/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, installShellFiles
, flac
, sox
, withAucdtect ? false
, aucdtect ? null
}:
2018-04-23 16:13:52 +01:00
stdenv.mkDerivation rec {
pname = "redoflacs";
version = "0.30.20190903";
2018-04-23 16:13:52 +01:00
src = fetchFromGitHub {
owner = "sirjaren";
repo = "redoflacs";
rev = "4ca544cbc075d0865884906208cb2b8bc318cf9e";
sha256 = "19lcl09d4ngz2zzwd8dnnxx41ddvznhar6ggrlf1xvkr5gd7lafp";
2018-04-23 16:13:52 +01:00
};
dontBuild = true;
nativeBuildInputs = [ installShellFiles makeWrapper ];
2018-04-23 16:13:52 +01:00
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin redoflacs
install -Dm644 -t $out/share/doc/redoflacs LICENSE *.md
installManPage redoflacs.1
2018-04-23 16:13:52 +01:00
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/redoflacs \
--prefix PATH : ${stdenv.lib.makeBinPath ([ flac sox ] ++ lib.optional withAucdtect aucdtect)}
2018-04-23 16:13:52 +01:00
'';
meta = with lib; {
2018-04-23 16:13:52 +01:00
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;
2018-04-23 16:13:52 +01:00
};
}