2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, fontconfig
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, libxkbcommon
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kickoff";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.7.3";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "j0ru";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-ha1pRViiOH0U0djUq1x8TIpVoUMn8l+2pA//YP70jdk=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-pdncUUGSfsn35VpwuNWZ/0DAIImBLAm0LyPbqQ06Xho=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
libPath = lib.makeLibraryPath [
|
|
|
|
wayland
|
|
|
|
libxkbcommon
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildInputs = [ fontconfig libxkbcommon ];
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/kickoff" --prefix LD_LIBRARY_PATH : "${libPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimalistic program launcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "kickoff";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/j0ru/kickoff";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ pyxels ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|