nixpkgs/pkgs/applications/misc/kickoff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
956 B
Nix
Raw Normal View History

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