nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 stdenv,
6 xorg,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "safecloset";
11 version = "1.4.0";
12
13 src = fetchFromGitHub {
14 owner = "Canop";
15 repo = "safecloset";
16 rev = "v${version}";
17 hash = "sha256-1NvBNITb/KmUC2c+vchvyL9yZbK9xj5Es7AXYg0U9mE=";
18 };
19
20 cargoHash = "sha256-VXxDD/2FFg3uQBdKdHsWOeLfOoCTYdaF+OZJVeQC6gE=";
21
22 buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
23 xorg.libxcb
24 ];
25
26 checkFlags = [
27 # skip flaky test
28 "--skip=timer::timer_tests::test_timer_reset"
29 ];
30
31 meta = with lib; {
32 description = "Cross-platform secure TUI secret locker";
33 homepage = "https://github.com/Canop/safecloset";
34 changelog = "https://github.com/Canop/safecloset/blob/${src.rev}/CHANGELOG.md";
35 license = licenses.agpl3Only;
36 maintainers = with maintainers; [ figsoda ];
37 mainProgram = "safecloset";
38 };
39}