2023-03-27 18:10:42 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, fontconfig
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, libxkbcommon
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "kickoff";
|
2023-12-10 09:00:07 +01:00
|
|
|
version = "0.7.2";
|
2023-03-27 18:10:42 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "j0ru";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-12-10 09:00:07 +01:00
|
|
|
hash = "sha256-WUDbb/GLABhqE93O6bm19Y+r0kSMEJrvduw68Igub44=";
|
2023-03-27 18:10:42 +02:00
|
|
|
};
|
|
|
|
|
2023-12-10 09:00:07 +01:00
|
|
|
cargoHash = "sha256-nhUC9PSKAbNEK5e4WRx3dgYI0rJP5XSWcW6M5E0Ihv4=";
|
2023-03-27 18:10:42 +02:00
|
|
|
|
|
|
|
libPath = lib.makeLibraryPath [
|
|
|
|
wayland
|
|
|
|
libxkbcommon
|
|
|
|
];
|
|
|
|
|
2023-10-25 21:57:23 +02:00
|
|
|
buildInputs = [ fontconfig libxkbcommon ];
|
2023-03-27 18:10:42 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper pkg-config ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/kickoff" --prefix LD_LIBRARY_PATH : "${libPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimalistic program launcher";
|
|
|
|
homepage = "https://github.com/j0ru/kickoff";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ pyxels ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|