commit c920b8e54b1d5ed231b6389e9acbc32f0f809355
parent a0c972fce5b2641b38b9272acf087181587ccf4f
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 15:57:25 +0200
parent a0c972fce5b2641b38b9272acf087181587ccf4f
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sun, 24 Aug 2025 15:57:25 +0200
packages: add `dssd` Dead Simple Secret Daemon
1 file changed, 47 insertions(+), 0 deletions(-)
diff --git a/packages/dssd/package.nix b/packages/dssd/package.nix @@ -0,0 +1,47 @@ +{ + tgcMaintainers, + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + dbus, + ... +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "dssd"; + version = "0.3.3"; + rev = "v${finalAttrs.version}"; + srcHash = "sha256-gAV4gwrfvYfc2f1tDY/cNOFMrQzrzHSmEFsKg7ke/6c="; + cargoHash = "sha256-yX2/2TW3FNbqwzR6+5yP26E2Eps0bTJgJJrDIQG2KQU="; + + src = fetchFromGitHub { + owner = "ylxdzsw"; + repo = finalAttrs.pname; + hash = finalAttrs.srcHash; + inherit (finalAttrs) rev; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + dbus + ]; + + postInstall = '' + mkdir -p $out/share/dbus-1/services + + cp ./org.freedesktop.secrets.service $out/share/dbus-1/services/ + ''; + + meta = { + mainProgram = "dssd"; + description = "Dead Simple Secret Daemon"; + homepage = "https://github.com/ylxdzsw/dssd"; + license = [ lib.licenses.mit ]; + platforms = lib.platforms.linux; + maintainers = [ tgcMaintainers.zaphyra ]; + }; +})