summary refs log tree commit diff
path: root/pkgs/applications/audio/redux
diff options
context:
space:
mode:
authormihnea <mihn.stn@gmail.com>2022-02-05 12:39:31 +0200
committermihnea <mihn.stn@gmail.com>2022-02-05 12:39:31 +0200
commitd4e5a11c50b1f67c676fe06c41bd03396aa6a922 (patch)
treea61faf0eb188f4fe987333e1cfaebd2df4756c22 /pkgs/applications/audio/redux
parent87a02122c477468ed5e896968473d0b8bc0a6842 (diff)
downloadnixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar.gz
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar.bz2
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar.lz
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar.xz
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.tar.zst
nixpkgs-d4e5a11c50b1f67c676fe06c41bd03396aa6a922.zip
redux: init at 1.2.2
Diffstat (limited to 'pkgs/applications/audio/redux')
-rw-r--r--pkgs/applications/audio/redux/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/audio/redux/default.nix b/pkgs/applications/audio/redux/default.nix
new file mode 100644
index 00000000000..45ee78917ac
--- /dev/null
+++ b/pkgs/applications/audio/redux/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, stdenv
+, fetchurl
+, libX11
+, alsa-lib
+, autoPatchelfHook
+, releasePath ? null
+}:
+
+# To use the full release version (same as renoise):
+# 1) Sign into https://backstage.renoise.com and download the release version to some stable location.
+# 2) Override the releasePath attribute to point to the location of the newly downloaded bundle.
+# Note: Renoise creates an individual build for each license which screws somewhat with the
+# use of functions like requireFile as the hash will be different for every user.
+
+stdenv.mkDerivation rec {
+  pname = "redux";
+  version = "1.2.2";
+
+  src = if releasePath != null then releasePath
+    else fetchurl {
+      url = "https://files.renoise.com/demo/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux.tar.gz";
+      sha256 = "0zbwsg7nh9x3q29jv2kpqb3vwi0ksdwybhb4m2qr95rxrpx1kxhm";
+    };
+
+  nativeBuildInputs = [
+    autoPatchelfHook
+  ];
+
+  buildInputs = [ libX11 alsa-lib stdenv.cc.cc.lib ];
+
+  installPhase = ''
+    runHook preInstall
+
+    OUTDIR=$out/lib/vst2/RenoiseRedux.vst2
+    mkdir -p $OUTDIR
+    cp -r ./renoise_redux_x86_64/* $OUTDIR
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "Sample-based instrument, with a powerful phrase sequencer";
+    homepage = "https://www.renoise.com/products/redux";
+    license = licenses.unfree;
+    maintainers = with maintainers; [ mihnea-s ];
+    platforms = [ "x86_64-linux" ];
+  };
+}