about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/wavpack
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/wavpack')
-rw-r--r--nixpkgs/pkgs/development/libraries/wavpack/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/wavpack/default.nix b/nixpkgs/pkgs/development/libraries/wavpack/default.nix
new file mode 100644
index 000000000000..4cd3007043cf
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/wavpack/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub, gettext, autoreconfHook, libiconv }:
+
+stdenv.mkDerivation rec {
+  pname = "wavpack";
+  version = "5.7.0";
+
+  enableParallelBuilding = true;
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ libiconv ];
+
+  # autogen.sh:9
+  preAutoreconf = "cp ${gettext}/share/gettext/config.rpath .";
+
+  src = fetchFromGitHub {
+    owner = "dbry";
+    repo = "WavPack";
+    rev = version;
+    hash = "sha256-vFZxg1mVqE7Kp38vEGA5V8m2tjqhssFsUZURixhlfk0=";
+  };
+
+  outputs = [ "out" "dev" "doc" "man" ];
+
+  meta = with lib; {
+    description = "Hybrid audio compression format";
+    homepage    = "https://www.wavpack.com/";
+    changelog   = "https://github.com/dbry/WavPack/releases/tag/${version}";
+    license     = licenses.bsd3;
+    platforms   = platforms.unix;
+    maintainers = with maintainers; [ codyopel ];
+  };
+}