depot/third_party/nixpkgs/pkgs/applications/misc/kickoff/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
956 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, fontconfig
, pkg-config
, wayland
, libxkbcommon
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
pname = "kickoff";
version = "0.7.4";
src = fetchFromGitHub {
owner = "j0ru";
repo = pname;
rev = "v${version}";
hash = "sha256-q/+Ik8L58LxOllpEosYyvD38RJb+NIQHslYpgGSwjKc=";
};
cargoHash = "sha256-8LSz/YeqdbtFXpWq2MMhEI9+8mxsLdE4LUyQHcgLkZY=";
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;
};
}