depot/third_party/nixpkgs/pkgs/by-name/wa/wayprompt/package.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

63 lines
1.2 KiB
Nix

{
callPackage,
lib,
zig_0_13,
stdenv,
fetchFromSourcehut,
fcft,
libxkbcommon,
pixman,
pkg-config,
scdoc,
wayland,
wayland-protocols,
wayland-scanner,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wayprompt";
version = "0.1.2";
src = fetchFromSourcehut {
owner = "~leon_plickat";
repo = "wayprompt";
rev = "v${finalAttrs.version}";
hash = "sha256-+9Zgq5/Zbb1I3CMH1pivPkddThaGDXM+vVCzWppXq+0=";
};
deps = callPackage ./build.zig.zon.nix { };
nativeBuildInputs = [
zig_0_13.hook
pkg-config
wayland
wayland-scanner
scdoc
];
buildInputs = [
fcft
libxkbcommon
pixman
wayland-protocols
];
zigBuildFlags = [
"--system"
"${finalAttrs.deps}"
];
postFixup = ''
substituteInPlace $out/bin/wayprompt-ssh-askpass \
--replace-fail wayprompt $out/bin/wayprompt
'';
meta = {
homepage = "https://git.sr.ht/~leon_plickat/wayprompt";
description = "Multi-purpose (password-)prompt tool for Wayland";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ sg-qwt ];
mainProgram = "pinentry-wayprompt";
platforms = lib.platforms.linux;
};
})