3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/sunvox/default.nix

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

49 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, unzip, alsa-lib, libX11, libXi, SDL2 }:
2018-01-08 01:35:29 +00:00
let
libPath = lib.makeLibraryPath [ stdenv.cc.cc alsa-lib libX11 libXi SDL2 ];
2018-01-08 01:35:29 +00:00
arch =
if stdenv.isAarch64
then "arm64"
else if stdenv.isAarch32
2018-01-08 01:35:29 +00:00
then "arm_armhf_raspberry_pi"
else if stdenv.is64bit
then "x86_64"
else "x86";
in
stdenv.mkDerivation rec {
pname = "SunVox";
2022-02-06 15:58:52 +00:00
version = "2.0c";
2018-01-08 01:35:29 +00:00
src = fetchurl {
url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip";
2022-02-06 15:58:52 +00:00
sha256 = "949e5348da9faa92ce17aac943b58027bdb797b65c7f5f365ef0610bb6dd8a3d";
2018-01-08 01:35:29 +00:00
};
nativeBuildInputs = [ unzip ];
2018-01-08 01:35:29 +00:00
unpackPhase = "unzip $src";
dontBuild = true;
installPhase = ''
mkdir -p $out/share $out/bin
mv sunvox $out/share/
bin="$out/share/sunvox/sunvox/linux_${arch}/sunvox"
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
"$bin"
ln -s "$bin" $out/bin/sunvox
'';
meta = with lib; {
2018-01-08 01:35:29 +00:00
description = "Small, fast and powerful modular synthesizer with pattern-based sequencer";
license = licenses.unfreeRedistributable;
homepage = "http://www.warmplace.ru/soft/sunvox/";
maintainers = with maintainers; [ puffnfresh ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}