reaper-sws-extension: init at 2.14.0.3
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
pname,
|
||||
version,
|
||||
meta,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
inherit
|
||||
pname
|
||||
version
|
||||
meta
|
||||
;
|
||||
srcs =
|
||||
|
||||
let
|
||||
plugin = fetchurl {
|
||||
url =
|
||||
let
|
||||
arch = if stdenvNoCC.hostPlatform.system == "x86_64-darwin" then "x86_64" else "arm64";
|
||||
in
|
||||
"https://github.com/reaper-oss/sws/releases/download/v${finalAttrs.version}/reaper_sws-${arch}.dylib";
|
||||
hash =
|
||||
{
|
||||
x86_64-darwin = "sha256-B185QWS9FaC/0XDhxUBbgr9zu2Ot8OIsfaPQ3sUHh4s=";
|
||||
aarch64-darwin = "sha256-8gbyPlnIXdWtSD+Aj70xzacJhO34edTTG2IOryB67os=";
|
||||
}
|
||||
.${stdenvNoCC.hostPlatform.system};
|
||||
};
|
||||
in
|
||||
[
|
||||
plugin
|
||||
(fetchurl {
|
||||
url = "https://github.com/reaper-oss/sws/releases/download/v${finalAttrs.version}/sws_python64.py";
|
||||
hash = "sha256-Yujj60+jOEfdSZ74cRU1Wxoh7RL2fo/IhJIpa+BDYV0=";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "https://github.com/reaper-oss/sws/releases/download/v${finalAttrs.version}/sws_python32.py";
|
||||
hash = "sha256-QktzdIDpTvNs9IrH7TOI6LTIBkfuQ3cqw06iqLxSSTI=";
|
||||
})
|
||||
];
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D *.py -t $out/Scripts
|
||||
install -D *.dylib -t $out/UserPlugins
|
||||
runHook postInstall
|
||||
'';
|
||||
})
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
cmake,
|
||||
php,
|
||||
perl,
|
||||
git,
|
||||
pkg-config,
|
||||
gtk3,
|
||||
|
||||
pname,
|
||||
version,
|
||||
meta,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit pname version meta;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "reaper-oss";
|
||||
repo = "sws";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-37pBbNACQuuEk1HJTiUHdb0mDiR2+ZsEQUOhz7mrPPg=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
git
|
||||
perl
|
||||
php
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [ gtk3 ];
|
||||
|
||||
})
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
callPackage,
|
||||
}:
|
||||
let
|
||||
p = if stdenvNoCC.hostPlatform.isDarwin then ./darwin.nix else ./linux.nix;
|
||||
in
|
||||
callPackage p {
|
||||
|
||||
pname = "reaper-sws-extension";
|
||||
version = "2.14.0.3";
|
||||
meta = {
|
||||
description = "Reaper Plugin Extension";
|
||||
longDescription = ''
|
||||
The SWS / S&M extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc.
|
||||
It is a collaborative and open source project.
|
||||
'';
|
||||
homepage = "https://www.sws-extension.org/";
|
||||
maintainers = with lib.maintainers; [ pancaek ];
|
||||
license = lib.licenses.mit;
|
||||
platforms = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user