Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions pkgs/by-name/re/reaper-sws-extension/darwin.nix
Original file line number Diff line number Diff line change
@@ -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
'';
})
39 changes: 39 additions & 0 deletions pkgs/by-name/re/reaper-sws-extension/linux.nix
Original file line number Diff line number Diff line change
@@ -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 ];

})
29 changes: 29 additions & 0 deletions pkgs/by-name/re/reaper-sws-extension/package.nix
Original file line number Diff line number Diff line change
@@ -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"
];
};
}