Files
nixpkgs/pkgs/by-name/ds/dssd/package.nix
phanirithvij 0efffd86c2 dssd: 0.3.1 -> 0.3.3
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2026-05-30 10:47:40 +05:30

48 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbus,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "dssd";
version = "0.3.3";
src = fetchFromGitHub {
owner = "ylxdzsw";
repo = "dssd";
tag = "v${finalAttrs.version}";
hash = "sha256-gAV4gwrfvYfc2f1tDY/cNOFMrQzrzHSmEFsKg7ke/6c=";
};
cargoHash = "sha256-yX2/2TW3FNbqwzR6+5yP26E2Eps0bTJgJJrDIQG2KQU=";
postPatch = ''
substituteInPlace dssd.service org.freedesktop.secrets.service \
--replace-fail /usr/bin/dssd $out/bin/dssd
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];
postInstall = ''
install dssd.service -Dt $out/lib/systemd/user/
install org.freedesktop.secrets.service -Dt $out/share/dbus-1/system-services/
'';
__structuredAttrs = true;
strictDeps = true;
meta = {
description = "Dead Simple Secret Daemon";
homepage = "https://github.com/ylxdzsw/dssd";
license = lib.licenses.mit;
mainProgram = "dssd";
maintainers = with lib.maintainers; [ phanirithvij ];
platforms = lib.platforms.linux;
};
})