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