about summary refs log tree commit diff
path: root/pkgs/applications/audio/redoflacs
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-04-23 23:13:52 +0800
committerPeter Hoeg <peter@hoeg.com>2018-09-28 22:42:44 +0800
commit265a340798e9b75c5902aea3e36a16ba06774ab1 (patch)
tree1d6851bae0d2c62968f84ef1758677cc3959f7d7 /pkgs/applications/audio/redoflacs
parent46651b82b87318e37440c15a639d49ec05e79b79 (diff)
downloadnixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar.gz
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar.bz2
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar.lz
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar.xz
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.tar.zst
nixlib-265a340798e9b75c5902aea3e36a16ba06774ab1.zip
redoflacs: init at 0.30.20150202
Diffstat (limited to 'pkgs/applications/audio/redoflacs')
-rw-r--r--pkgs/applications/audio/redoflacs/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/redoflacs/default.nix b/pkgs/applications/audio/redoflacs/default.nix
new file mode 100644
index 000000000000..1918fa9e3a99
--- /dev/null
+++ b/pkgs/applications/audio/redoflacs/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchFromGitHub, makeWrapper
+, flac, sox }:
+
+stdenv.mkDerivation rec {
+  name = "redoflacs-${version}";
+  version = "0.30.20150202";
+
+  src = fetchFromGitHub {
+    owner  = "sirjaren";
+    repo   = "redoflacs";
+    rev    = "86c6f5becca0909dcb2a0cb9ed747a575d7a4735";
+    sha256 = "1gzlmh4vnf2fl0x8ig2n1f76082ngldsv85i27dv15y2m1kffw2j";
+  };
+
+  dontBuild = true;
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 -t $out/bin redoflacs
+    install -Dm644 -t $out/share/doc/redoflacs LICENSE *.md
+
+    runHook postInstall
+  '';
+
+  postFixup = ''
+    wrapProgram $out/bin/redoflacs \
+      --prefix PATH : ${stdenv.lib.makeBinPath [ flac sox ]}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Parallel BASH commandline FLAC compressor, verifier, organizer, analyzer, and retagger";
+    homepage    = src.meta.homepage;
+    license     = licenses.gpl2;
+    platforms   = platforms.all;
+  };
+}