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