git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #129563 from misuzu/alfis-init

alfis: init at 0.6.5

commit5dd4f2dff10d7a89ab5e40aadbe36466732e247a authorSandro <sandro.jaeckel@gmail.com> dateThu 8 Jul 2021, 16:59 (5 years ago) parent643ce4b1a995d2
2 files changed+48
pkgs/applications/blockchains/alfis/default.nix+41 pkgs/top-level/all-packages.nix+7
pkgs/applications/blockchains/alfis/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config
2+, withGui ? true, webkitgtk, Cocoa, WebKit
3+}:
4+
5+rustPlatform.buildRustPackage rec {
6+ pname = "alfis";
7+ version = "0.6.5";
8+
9+ src = fetchFromGitHub {
10+ owner = "Revertron";
11+ repo = "Alfis";
12+ rev = "v${version}";
13+ sha256 = "1g95yvkvlj78bqrk3p2xbhrmg1hrlgbyr1a4s7vg45y60zys2c2j";
14+ };
15+
16+ cargoSha256 = "1n7kb1lyghpkgdgd58pw8ldvfps30rnv5niwx35pkdg74h59hqgj";
17+
18+ cargoBuildFlags = [ "--no-default-features" ]
19+ ++ lib.optional withGui "--features webgui";
20+
21+ cargoTestFlags = [ "--no-default-features" ]
22+ ++ lib.optional withGui "--features webgui";
23+
24+ checkFlags = [
25+ # these want internet access, disable them
26+ "--skip=dns::client::tests::test_tcp_client"
27+ "--skip=dns::client::tests::test_udp_client"
28+ ];
29+
30+ nativeBuildInputs = [ pkg-config ];
31+ buildInputs = lib.optional (withGui && stdenv.isLinux) webkitgtk
32+ ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ];
33+
34+ meta = with lib; {
35+ description = "Alternative Free Identity System";
36+ homepage = "https://alfis.name";
37+ license = licenses.agpl3Only;
38+ maintainers = with maintainers; [ misuzu ];
39+ platforms = platforms.unix;
40+ };
41+}
pkgs/top-level/all-packages.nix+7
@@ -28328,6 +28328,13 @@ in
2832828328
2832928329 aeon = callPackage ../applications/blockchains/aeon { };
2833028330
28331+ alfis = callPackage ../applications/blockchains/alfis {
28332+ inherit (darwin.apple_sdk.frameworks) Cocoa WebKit;
28333+ };
28334+ alfis-nogui = alfis.override {
28335+ withGui = false;
28336+ };
28337+
2833128338 balanceofsatoshis = nodePackages.balanceofsatoshis;
2833228339
2833328340 bitcoin = libsForQt5.callPackage ../applications/blockchains/bitcoin.nix { miniupnpc = miniupnpc_2; withGui = true; };