diff options
author | figsoda <figsoda@pm.me> | 2021-11-15 19:10:25 -0500 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2021-11-16 08:11:49 -0500 |
commit | c07e2bf52e04b8d5b755eed68029d0885ff053a1 (patch) | |
tree | 9826b139ff80f0f24e1e965c500eb26b1ce55e79 | |
parent | ee8e2f886414ee8a897fe853e8ff8c47a04cf586 (diff) | |
download | nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar.gz nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar.bz2 nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar.lz nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar.xz nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.tar.zst nixpkgs-c07e2bf52e04b8d5b755eed68029d0885ff053a1.zip |
alfis: use buildFeatures
-rw-r--r-- | pkgs/applications/blockchains/alfis/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/applications/blockchains/alfis/default.nix b/pkgs/applications/blockchains/alfis/default.nix index 0738661c059..e1fd262eb77 100644 --- a/pkgs/applications/blockchains/alfis/default.nix +++ b/pkgs/applications/blockchains/alfis/default.nix @@ -14,12 +14,6 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "1n7kb1lyghpkgdgd58pw8ldvfps30rnv5niwx35pkdg74h59hqgj"; - cargoBuildFlags = [ "--no-default-features" ] - ++ lib.optional withGui "--features webgui"; - - cargoTestFlags = [ "--no-default-features" ] - ++ lib.optional withGui "--features webgui"; - checkFlags = [ # these want internet access, disable them "--skip=dns::client::tests::test_tcp_client" @@ -30,6 +24,9 @@ rustPlatform.buildRustPackage rec { buildInputs = lib.optional (withGui && stdenv.isLinux) webkitgtk ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ]; + buildNoDefaultFeatures = true; + buildFeatures = lib.optional withGui "webgui"; + postInstall = lib.optionalString (withGui && stdenv.isLinux) '' wrapProgram $out/bin/alfis \ --prefix PATH : ${lib.makeBinPath [ zenity ]} |