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