summary refs log tree commit diff
diff options
context:
space:
mode:
authorIvv <41924494+IvarWithoutBones@users.noreply.github.com>2022-02-10 21:18:55 +0100
committerGitHub <noreply@github.com>2022-02-10 21:18:55 +0100
commitae0fbd01e118afe964fa80a35cd33dae777d9b42 (patch)
tree0f868a8b8e0e0bc6713c168387a8dd4ffe18417e
parentbfae513f074bd7db62e6f2a493b6b9bbde270e90 (diff)
parentd4e5a11c50b1f67c676fe06c41bd03396aa6a922 (diff)
downloadnixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar.gz
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar.bz2
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar.lz
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar.xz
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.tar.zst
nixpkgs-ae0fbd01e118afe964fa80a35cd33dae777d9b42.zip
Merge pull request #156733 from mihnea-s/master
redux: init at 1.2.2
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/applications/audio/redux/default.nix49
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 57 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 6e8afae7d3d..7fb0eb21753 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -7958,6 +7958,12 @@
       fingerprint = "FEF0 AE2D 5449 3482 5F06  40AA 186A 1EDA C5C6 3F83";
     }];
   };
+  mihnea-s = {
+    email = "mihn.stn@gmail.com";
+    github = "mihnea-s";
+    githubId = 43088426;
+    name = "Mihnea Stoian";
+  };
   mikefaille = {
     email = "michael@faille.io";
     github = "mikefaille";
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" ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 835ba69bfd2..3e2b883730a 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -28382,6 +28382,8 @@ with pkgs;
 
   renoise = callPackage ../applications/audio/renoise {};
 
+  redux = callPackage ../applications/audio/redux { };
+
   roomeqwizard = callPackage ../applications/audio/roomeqwizard { };
 
   radiotray-ng = callPackage ../applications/audio/radiotray-ng {