depot/third_party/nixpkgs/pkgs/applications/audio/helio-workstation/default.nix
Default email 14a1eeff01 Project import generated by Copybara.
GitOrigin-RevId: 6933d068c5d2fcff398e802f7c4e271bbdab6705
2021-05-29 03:34:57 +00:00

49 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub
, alsaLib, freetype, xorg, curl, libGL, libjack2, gnome
, pkg-config, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "helio-workstation";
version = "3.6";
src = fetchFromGitHub {
owner = "helio-fm";
repo = pname;
rev = version;
fetchSubmodules = true;
sha256 = "sha256-qW39g6rQ5VPQ3Hx9NmwLbpZiITnzFZDZlcLkE+pJKPc=";
};
buildInputs = [
alsaLib freetype xorg.libX11 xorg.libXext xorg.libXinerama xorg.libXrandr
xorg.libXcursor xorg.libXcomposite curl libGL libjack2 gnome.zenity
];
nativeBuildInputs = [ pkg-config makeWrapper ];
preBuild = ''
cd Projects/LinuxMakefile
substituteInPlace Makefile --replace alsa "alsa jack"
'';
buildFlags = [ "CONFIG=Release64" ];
installPhase = ''
mkdir -p $out/bin
install -Dm755 build/Helio $out/bin
wrapProgram $out/bin/Helio --prefix PATH ":" ${gnome.zenity}/bin
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"
'';
meta = with lib; {
description = "One music sequencer for all major platforms, both desktop and mobile";
homepage = "https://helio.fm/";
license = licenses.gpl3Only;
maintainers = [ maintainers.suhr ];
platforms = [ "x86_64-linux" ];
};
}