2020-02-05 13:23:44 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, installShellFiles
|
|
|
|
, flac
|
|
|
|
, sox
|
|
|
|
}:
|
2018-04-23 15:13:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "redoflacs";
|
2020-02-05 13:23:44 +00:00
|
|
|
version = "0.30.20190903";
|
2018-04-23 15:13:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-05 13:23:44 +00:00
|
|
|
owner = "sirjaren";
|
|
|
|
repo = "redoflacs";
|
|
|
|
rev = "4ca544cbc075d0865884906208cb2b8bc318cf9e";
|
|
|
|
sha256 = "19lcl09d4ngz2zzwd8dnnxx41ddvznhar6ggrlf1xvkr5gd7lafp";
|
2018-04-23 15:13:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2020-02-05 13:23:44 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
2018-04-23 15:13:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t $out/bin redoflacs
|
|
|
|
install -Dm644 -t $out/share/doc/redoflacs LICENSE *.md
|
2020-02-05 13:23:44 +00:00
|
|
|
installManPage redoflacs.1
|
2018-04-23 15:13:52 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/redoflacs \
|
2021-01-15 13:21:58 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath ([ flac sox ])}
|
2018-04-23 15:13:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-02-05 13:23:44 +00:00
|
|
|
meta = with lib; {
|
2018-04-23 15:13:52 +00:00
|
|
|
description = "Parallel BASH commandline FLAC compressor, verifier, organizer, analyzer, and retagger";
|
2020-02-05 13:23:44 +00:00
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
2018-04-23 15:13:52 +00:00
|
|
|
};
|
|
|
|
}
|