From c174c67e3206ea2bb3f565a048b9961d602d93ed Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 14 Jul 2024 01:25:42 +0300 Subject: 2024-07-14 --- packages/lampray.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'packages') diff --git a/packages/lampray.nix b/packages/lampray.nix index 876bf60..e9caa13 100644 --- a/packages/lampray.nix +++ b/packages/lampray.nix @@ -6,9 +6,12 @@ fetchFromGitHub, lib, lz4, + makeWrapper, ninja, + p7zip, pkg-config, stdenv, + zenity, }: stdenv.mkDerivation { pname = "lampray"; @@ -24,6 +27,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ autoPatchelfHook cmake + makeWrapper ninja pkg-config ]; @@ -34,10 +38,17 @@ stdenv.mkDerivation { lz4 ]; + postPatch = '' + substituteInPlace Lampray/Control/lampConfig.cpp \ + --replace-fail '/usr/libexec/p7zip/7z.so' '${p7zip.lib}/lib/p7zip/7z.so' + ''; + installPhase = '' runHook preInstall install -Dm755 Lampray $out/bin/lampray + wrapProgram $out/bin/lampray \ + --prefix PATH : "${lib.makeBinPath [ zenity ]}" runHook postInstall ''; @@ -54,5 +65,7 @@ stdenv.mkDerivation { ]; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ azahi ]; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + mainProgram = "lampray"; }; } -- cgit 1.4.1