nixpkgs/pkgs/applications/audio/redux/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.5 KiB
Nix
Raw Normal View History

2022-02-05 10:39:31 +00:00
{ lib
, stdenv
, fetchurl
, libX11
2022-07-13 06:01:57 +00:00
, libXext
2022-02-05 10:39:31 +00:00
, 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";
2022-07-13 06:01:57 +00:00
version = "1.3.2";
2022-02-05 10:39:31 +00:00
src = if releasePath != null then releasePath
else fetchurl {
2022-07-13 06:01:57 +00:00
url = "https://files.renoise.com/demo/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz";
sha256 = "sha256-wafOeNvVIHc8pOHoNQcCwV8+OwnuevJo1EcRQKRX4YA=";
2022-02-05 10:39:31 +00:00
};
nativeBuildInputs = [
autoPatchelfHook
];
2022-07-13 06:01:57 +00:00
buildInputs = [
libX11
libXext
alsa-lib
stdenv.cc.cc.lib
];
2022-02-05 10:39:31 +00:00
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";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2022-02-05 10:39:31 +00:00
license = licenses.unfree;
maintainers = with maintainers; [ mihnea-s ];
platforms = [ "x86_64-linux" ];
};
}