nixpkgs-suyu/pkgs/applications/audio/helio-workstation/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, alsa-lib, freetype, xorg, curl, libGL, libjack2, gnome
, pkg-config, makeWrapper
2019-07-21 21:23:38 +02:00
}:
stdenv.mkDerivation rec {
pname = "helio-workstation";
2021-12-11 09:59:12 +01:00
version = "3.8";
2019-07-21 21:23:38 +02:00
src = fetchFromGitHub {
owner = "helio-fm";
repo = pname;
rev = version;
fetchSubmodules = true;
2021-12-11 09:59:12 +01:00
sha256 = "sha256-uwRSOJ5WvDH4mfL9pCTCGzuSRT8SIBrI+Wsbumzejv0=";
2019-07-21 21:23:38 +02:00
};
buildInputs = [
alsa-lib freetype xorg.libX11 xorg.libXext xorg.libXinerama xorg.libXrandr
xorg.libXcursor xorg.libXcomposite curl libGL libjack2 gnome.zenity
2019-07-21 21:23:38 +02:00
];
nativeBuildInputs = [ pkg-config makeWrapper ];
2019-07-21 21:23:38 +02:00
2020-08-08 19:28:07 +02:00
preBuild = ''
cd Projects/LinuxMakefile
substituteInPlace Makefile --replace alsa "alsa jack"
'';
2019-07-21 21:23:38 +02:00
buildFlags = [ "CONFIG=Release64" ];
installPhase = ''
mkdir -p $out/bin
2021-12-11 09:59:12 +01:00
install -Dm755 build/helio $out/bin
wrapProgram $out/bin/helio --prefix PATH ":" ${gnome.zenity}/bin
2019-07-21 21:23:38 +02:00
mkdir -p $out/share
cp -r ../Deployment/Linux/Debian/x64/usr/share/* $out/share
substituteInPlace $out/share/applications/Helio.desktop \
2021-12-11 09:59:12 +01:00
--replace "/usr/bin/helio" "$out/bin/helio"
2019-07-21 21:23:38 +02:00
'';
meta = with lib; {
2019-07-21 21:23:38 +02:00
description = "One music sequencer for all major platforms, both desktop and mobile";
homepage = "https://helio.fm/";
2020-12-26 12:07:33 +01:00
license = licenses.gpl3Only;
2019-07-21 21:23:38 +02:00
maintainers = [ maintainers.suhr ];
platforms = [ "x86_64-linux" ];
};
}