xin/pkgs/secretive.nix

32 lines
842 B
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
lib,
fetchurl,
stdenv,
unzip,
...
}:
2022-08-25 12:21:35 -06:00
stdenv.mkDerivation rec {
pname = "secretive";
version = "2.2.0";
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";
2022-08-25 12:21:35 -06:00
hash = "sha256-gjB8bevzbgYZ1GtAVMK+IBp9eP+Y79s8RhK/sdg7AI8=";
};
2023-07-11 09:12:50 -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;
};
}