tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
SunVox: init at 1.9.3b
Brian McKenna
8 years ago
480f0430
b9806751
+50
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
sunvox
default.nix
top-level
all-packages.nix
+48
pkgs/applications/audio/sunvox/default.nix
···
1
1
+
{ stdenv, fetchurl, unzip, alsaLib, libX11, libXi, SDL2 }:
2
2
+
3
3
+
let
4
4
+
libPath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc alsaLib libX11 libXi SDL2 ];
5
5
+
arch =
6
6
+
if stdenv.isAarch64
7
7
+
then "arm64"
8
8
+
else if stdenv.isArm
9
9
+
then "arm_armhf_raspberry_pi"
10
10
+
else if stdenv.is64bit
11
11
+
then "x86_64"
12
12
+
else "x86";
13
13
+
in
14
14
+
stdenv.mkDerivation rec {
15
15
+
name = "SunVox-${version}";
16
16
+
version = "1.9.3b";
17
17
+
18
18
+
src = fetchurl {
19
19
+
url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip";
20
20
+
sha256 = "0k74rcq7niw4p17vj3zp9lpgi932896dmzqv4ln43g0pz7l18c8b";
21
21
+
};
22
22
+
23
23
+
buildInputs = [ unzip ];
24
24
+
25
25
+
unpackPhase = "unzip $src";
26
26
+
27
27
+
dontBuild = true;
28
28
+
29
29
+
installPhase = ''
30
30
+
mkdir -p $out/share $out/bin
31
31
+
mv sunvox $out/share/
32
32
+
33
33
+
bin="$out/share/sunvox/sunvox/linux_${arch}/sunvox"
34
34
+
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
35
35
+
--set-rpath "${libPath}" \
36
36
+
"$bin"
37
37
+
38
38
+
ln -s "$bin" $out/bin/sunvox
39
39
+
'';
40
40
+
41
41
+
meta = with stdenv.lib; {
42
42
+
description = "Small, fast and powerful modular synthesizer with pattern-based sequencer";
43
43
+
license = licenses.unfreeRedistributable;
44
44
+
homepage = "http://www.warmplace.ru/soft/sunvox/";
45
45
+
maintainers = with maintainers; [ puffnfresh ];
46
46
+
platforms = [ "i686-linux" "x86_64-linux" ];
47
47
+
};
48
48
+
}
+2
pkgs/top-level/all-packages.nix
···
17054
17054
17055
17055
surf = callPackage ../applications/networking/browsers/surf { gtk = gtk2; };
17056
17056
17057
17057
+
sunvox = callPackage ../applications/audio/sunvox { };
17058
17058
+
17057
17059
swh_lv2 = callPackage ../applications/audio/swh-lv2 { };
17058
17060
17059
17061
sylpheed = callPackage ../applications/networking/mailreaders/sylpheed { };