mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
7916603819
the distribution was updated to include some missing executables without bumping version https://warmplace.ru/forum/viewtopic.php?f=12&t=5661
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, unzip, alsaLib, libX11, libXi, SDL2 }:
|
|
|
|
let
|
|
libPath = lib.makeLibraryPath [ stdenv.cc.cc alsaLib libX11 libXi SDL2 ];
|
|
arch =
|
|
if stdenv.isAarch64
|
|
then "arm64"
|
|
else if stdenv.isAarch32
|
|
then "arm_armhf_raspberry_pi"
|
|
else if stdenv.is64bit
|
|
then "x86_64"
|
|
else "x86";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "SunVox";
|
|
version = "1.9.6c";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.warmplace.ru/soft/sunvox/sunvox-${version}.zip";
|
|
sha256 = "10lqbm1grw0sqasx7i6528cishv5ksdf9zbb3ygxd8c1iwaxzhb9";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
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; {
|
|
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" ];
|
|
};
|
|
}
|