3 files changed +120
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ stdenvNoCC ,
3
+ fetchurl ,
4
+ pname ,
5
+ version ,
6
+ meta ,
7
+ } :
8
+
9
+ stdenvNoCC . mkDerivation ( finalAttrs : {
10
+ inherit
11
+ pname
12
+ version
13
+ meta
14
+ ;
15
+ srcs =
16
+
17
+ let
18
+ plugin = fetchurl {
19
+ url =
20
+ let
21
+ arch = if stdenvNoCC . hostPlatform . system == "x86_64-darwin" then "x86_64" else "arm64" ;
22
+ in
23
+ "https://github.com/reaper-oss/sws/releases/download/v${ finalAttrs . version } /reaper_sws-${ arch } .dylib" ;
24
+ hash =
25
+ {
26
+ x86_64-darwin = "sha256-12w70z2xxl53glnf5w5dcfxp7gw2bd0cbqbhs6zs05dxci0kjpq7" ;
27
+ aarch64-darwin = "sha256-12zfg8hay3k23g9x8ygqxn20k9yd66yqz01z92nxapf8b4zg41pj" ;
28
+ }
29
+ . ${ stdenvNoCC . hostPlatform . system } ;
30
+ } ;
31
+ in
32
+ [
33
+ plugin
34
+ ( fetchurl {
35
+ url = "https://github.com/reaper-oss/sws/releases/download/v${ finalAttrs . version } /sws_python64.py" ;
36
+ hash = "sha256-0pb18gh6nacjhk48yzpn2bnj26jv6lap3y4y97flff539zmy7s32" ;
37
+ } )
38
+ ( fetchurl {
39
+ url = "https://github.com/reaper-oss/sws/releases/download/v${ finalAttrs . version } /sws_python32.py" ;
40
+ hash = "sha256-0cj9aayai8jfqcm7fhzf8w3cid78i0ryviwaying6kp9h1s76js2" ;
41
+ } )
42
+ ] ;
43
+
44
+ dontUnpack = true ;
45
+
46
+ installPhase = ''
47
+ runHook preInstall
48
+ install -D *.py -t $out/Scripts
49
+ install -D *.dylib -t $out/UserPlugins
50
+ runHook postInstall
51
+ '' ;
52
+ } )
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ stdenv ,
4
+ fetchFromGitHub ,
5
+ cmake ,
6
+ php ,
7
+ perl ,
8
+ git ,
9
+ pkg-config ,
10
+ gtk3 ,
11
+
12
+ pname ,
13
+ version ,
14
+ meta ,
15
+ } :
16
+ stdenv . mkDerivation ( finalAttrs : {
17
+ inherit pname version meta ;
18
+
19
+ src = fetchFromGitHub {
20
+ owner = "reaper-oss" ;
21
+ repo = "sws" ;
22
+ tag = "v${ finalAttrs . version } " ;
23
+ hash = "sha256-37pBbNACQuuEk1HJTiUHdb0mDiR2+ZsEQUOhz7mrPPg=" ;
24
+ fetchSubmodules = true ;
25
+ } ;
26
+
27
+ strictDeps = true ;
28
+
29
+ nativeBuildInputs = [
30
+ cmake
31
+ git
32
+ perl
33
+ php
34
+ pkg-config
35
+ ] ;
36
+
37
+ buildInputs = [ gtk3 ] ;
38
+
39
+ } )
Original file line number Diff line number Diff line change
1
+ {
2
+ lib ,
3
+ stdenvNoCC ,
4
+ callPackage ,
5
+ } :
6
+ let
7
+ p = if stdenvNoCC . hostPlatform . isDarwin then ./darwin.nix else ./linux.nix ;
8
+ in
9
+ callPackage p {
10
+
11
+ pname = "reaper-sws-extension" ;
12
+ version = "2.14.0.3" ;
13
+ meta = {
14
+ description = "Reaper Plugin Extension" ;
15
+ longDescription = ''
16
+ The SWS / S&M extension is a collection of features that seamlessly integrate into REAPER, the Digital Audio Workstation (DAW) software by Cockos, Inc.
17
+ It is a collaborative and open source project.
18
+ '' ;
19
+ homepage = "https://www.sws-extension.org/" ;
20
+ maintainers = with lib . maintainers ; [ pancaek ] ;
21
+ license = lib . licenses . mit ;
22
+ platforms = [
23
+ "x86_64-linux"
24
+ "aarch64-linux"
25
+ "x86_64-darwin"
26
+ "aarch64-darwin"
27
+ ] ;
28
+ } ;
29
+ }
0 commit comments