Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / safecloset / default.nix
blobce774e5a668f1f71370e16c3b66ffea86178ba1b
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , stdenv
5 , darwin
6 , xorg
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "safecloset";
11   version = "1.3.2";
13   src = fetchFromGitHub {
14     owner = "Canop";
15     repo = "safecloset";
16     rev = "v${version}";
17     hash = "sha256-buIceYP/dZMDw3tyrzj1bY6+sIIPaVJIVj1L//jZnws=";
18   };
20   cargoHash = "sha256-rxNp9dOvy/UTx6Q9pzZGccEKmIiWxzWVYyMxb+h5bqw=";
22   buildInputs = lib.optionals stdenv.isDarwin [
23     darwin.apple_sdk.frameworks.AppKit
24   ] ++ lib.optionals stdenv.isLinux [
25     xorg.libxcb
26   ];
28   checkFlags = [
29     # skip flaky test
30     "--skip=timer::timer_tests::test_timer_reset"
31   ];
33   meta = with lib; {
34     description = "Cross-platform secure TUI secret locker";
35     homepage = "https://github.com/Canop/safecloset";
36     changelog = "https://github.com/Canop/safecloset/blob/${src.rev}/CHANGELOG.md";
37     license = licenses.agpl3Only;
38     maintainers = with maintainers; [ figsoda ];
39     mainProgram = "safecloset";
40   };