This repository has no description
947 B
42 lines
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5 unzip,
6}:
7
8stdenvNoCC.mkDerivation rec {
9 pname = "secretive";
10 version = "2.4.1";
11
12 src = fetchzip {
13 url = "https://github.com/maxgoedjen/secretive/releases/download/v${version}/Secretive.zip";
14 hash = "sha256-JzG7AWpvo/ivtb5JARNCYIQiLuqFYe6Peg2T444Qv0M=";
15 stripRoot = false;
16 };
17
18 nativeBuildInputs = [ unzip ];
19
20 dontBuild = true;
21 dontConfigure = true;
22 dontFixup = true;
23
24 installPhase = ''
25 runHook preInstall
26
27 mkdir -p $out/Applications
28 cp -R Secretive.app $out/Applications/
29
30 runHook postInstall
31 '';
32
33 meta = {
34 description = "Store SSH keys in the Secure Enclave";
35 homepage = "https://github.com/maxgoedjen/secretive";
36 changelog = "https://github.com/maxgoedjen/secretive/releases/tag/v${version}";
37 license = lib.licenses.mit;
38 maintainers = with lib.maintainers; [ ];
39 platforms = lib.platforms.darwin;
40 mainProgram = "Secretive";
41 };
42}