matrix-synapse: compile only against zenity & use wrapProgram
instead of makeWrapper
This commit is contained in:
parent
ad2f75b559
commit
01537c17e1
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, withGui ? true
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, withGui ? true
|
||||||
, webkitgtk, Cocoa, WebKit, dialog, makeWrapper }:
|
, webkitgtk, Cocoa, WebKit, zenity, makeWrapper }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "alfis";
|
pname = "alfis";
|
||||||
@ -31,9 +31,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ];
|
++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ];
|
||||||
|
|
||||||
postInstall = lib.optionalString (withGui && stdenv.isLinux) ''
|
postInstall = lib.optionalString (withGui && stdenv.isLinux) ''
|
||||||
cp $out/bin/alfis{,_unwrapped}
|
wrapProgram $out/bin/alfis \
|
||||||
makeWrapper $out/bin/alfis{_unwrapped,} \
|
--prefix PATH : ${lib.makeBinPath [ zenity ]}
|
||||||
--prefix PATH : ${lib.makeBinPath [ dialog ]}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -28669,7 +28669,7 @@ with pkgs;
|
|||||||
|
|
||||||
alfis = callPackage ../applications/blockchains/alfis {
|
alfis = callPackage ../applications/blockchains/alfis {
|
||||||
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
|
inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
|
||||||
dialog = gnome.zenity;
|
inherit (gnome) zenity;
|
||||||
};
|
};
|
||||||
alfis-nogui = alfis.override {
|
alfis-nogui = alfis.override {
|
||||||
withGui = false;
|
withGui = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user