depot/third_party/nixpkgs/pkgs/applications/misc/kickoff/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
956 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, fontconfig
, pkg-config
, wayland
, libxkbcommon
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
pname = "kickoff";
version = "0.7.3";
src = fetchFromGitHub {
owner = "j0ru";
repo = pname;
rev = "v${version}";
hash = "sha256-ha1pRViiOH0U0djUq1x8TIpVoUMn8l+2pA//YP70jdk=";
};
cargoHash = "sha256-pdncUUGSfsn35VpwuNWZ/0DAIImBLAm0LyPbqQ06Xho=";
libPath = lib.makeLibraryPath [
wayland
libxkbcommon
];
buildInputs = [ fontconfig libxkbcommon ];
nativeBuildInputs = [ makeWrapper pkg-config ];
postInstall = ''
wrapProgram "$out/bin/kickoff" --prefix LD_LIBRARY_PATH : "${libPath}"
'';
meta = with lib; {
description = "Minimalistic program launcher";
mainProgram = "kickoff";
homepage = "https://github.com/j0ru/kickoff";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pyxels ];
platforms = platforms.linux;
};
}