15 rustPlatform.buildRustPackage rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-BNpz4SjWeZ20CxjyEIaFI43X7P3uoyWqOQssFb38Gv8=";
27 lockFile = ./Cargo.lock;
29 "web-view-0.7.3" = "sha256-8C/2bXAbxP5tdo9RLvNn89krzy08+yKy3kERfz31HJE=";
34 # these want internet access, disable them
35 "--skip=dns::client::tests::test_tcp_client"
36 "--skip=dns::client::tests::test_udp_client"
39 nativeBuildInputs = [ pkg-config makeWrapper ];
40 buildInputs = lib.optional stdenv.isDarwin Security
41 ++ lib.optional (withGui && stdenv.isLinux) webkitgtk
42 ++ lib.optionals (withGui && stdenv.isDarwin) [ Cocoa WebKit ];
44 buildNoDefaultFeatures = true;
47 ] ++ lib.optional withGui "webgui";
49 postInstall = lib.optionalString (withGui && stdenv.isLinux) ''
50 wrapProgram $out/bin/alfis \
51 --prefix PATH : ${lib.makeBinPath [ zenity ]}
55 description = "Alternative Free Identity System";
56 homepage = "https://alfis.name";
57 license = licenses.agpl3Only;
58 maintainers = with maintainers; [ misuzu ];
59 platforms = platforms.unix;