-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff8aa8b
commit 7c2aeeb
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ stdenv | ||
, lib | ||
, fetchFromGitHub | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "ks"; | ||
version = "0.4.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "loteoo"; | ||
repo = "ks"; | ||
rev = "${finalAttrs.version}"; | ||
hash = "sha256-jGo0u0wiwOc2n8x0rvDIg1suu6vJQ5UCfslYD5vUlyI="; | ||
}; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp ${finalAttrs.pname} $out/bin/ | ||
''; | ||
|
||
meta = { | ||
mainProgram = "ks"; | ||
homepage = "https://github.com/loteoo/ks"; | ||
description = "Command-line secrets manager powered by macOS keychains"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ ivankovnatsky ]; | ||
platforms = lib.platforms.darwin; | ||
}; | ||
}) |