1{ lib
2, stdenv
3, fetchFromSourcehut
4, hare
5, scdoc
6}:
7
8stdenv.mkDerivation rec {
9 pname = "himitsu";
10 version = "0.3";
11
12 src = fetchFromSourcehut {
13 name = pname + "-src";
14 owner = "~sircmpwn";
15 repo = pname;
16 rev = version;
17 hash = "sha256-HoAntg9aQhMmff3T3/xnor7Sf3yX9qBbZlpVfyac5o8=";
18 };
19
20 nativeBuildInputs = [
21 hare
22 scdoc
23 ];
24
25 preConfigure = ''
26 export HARECACHE=$(mktemp -d)
27 '';
28
29 installFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
30
31 meta = with lib; {
32 homepage = "https://himitsustore.org/";
33 description = "A secret storage manager";
34 license = licenses.gpl3Only;
35 maintainers = with maintainers; [ auchter ];
36 inherit (hare.meta) platforms badPlatforms;
37 };
38}