xin/pkgs/secretive.nix

31 lines
838 B
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ lib
, fetchurl
, stdenv
, unzip
, ...
2023-07-11 09:12:50 -06:00
}:
2022-08-25 12:21:35 -06:00
stdenv.mkDerivation rec {
pname = "secretive";
2023-07-31 07:28:52 -06:00
version = "2.3.1";
2022-08-25 12:21:35 -06:00
src = fetchurl {
name = "Secretive-${version}.zip";
2023-07-11 09:12:50 -06:00
url = "https://github.com/maxgoedjen/secretive/releases/download/v${version}/Secretive.zip";
2023-07-31 07:28:52 -06:00
hash = "sha256-STpyNiiYtEgLqnDxFdlRW0Gyr0pQPK8AJ34rw4JLC70=";
2022-08-25 12:21:35 -06:00
};
2023-09-12 08:44:05 -06:00
buildInputs = [ unzip ];
2022-08-25 12:21:35 -06:00
installPhase = ''
mkdir -p $out/Applications
cp -R ../*.app $out/Applications
'';
meta = {
2023-07-11 09:12:50 -06:00
description = "Secretive is an app for storing and managing SSH keys in the Secure Enclave. It is inspired by the sekey project, but rewritten in Swift with no external dependencies and with a handy native management app.";
2022-08-25 12:21:35 -06:00
homepage = "https://github.com/maxgoedjen/secretive";
license = lib.licenses.mit;
platforms = lib.platforms.darwin;
};
}