nixpkgs/pkgs/by-name/ap/aphorme/package.nix

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

55 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-05 09:28:25 +02:00
{
lib,
fetchFromGitHub,
rustPlatform,
wayland,
libxkbcommon,
libGL,
stdenv,
testers,
aphorme,
autoPatchelfHook,
}:
rustPlatform.buildRustPackage rec {
pname = "aphorme";
version = "0.1.19";
src = fetchFromGitHub {
owner = "Iaphetes";
repo = "aphorme_launcher";
tag = "v${version}";
2024-04-05 09:28:25 +02:00
hash = "sha256-p1ZIMMDyQWVzoeyHb3sbeV6XQwbIDoQwJU8ynI8hGUI=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-knxFQ9hBBc8zATwf4ntbbmT2a+33uYcqax8AAFsj/NM=";
2024-04-05 09:28:25 +02:00
# No tests exist
doCheck = false;
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
2024-04-05 09:28:25 +02:00
nativeBuildInputs = [ autoPatchelfHook ];
runtimeDependencies = [
wayland
libGL
libxkbcommon
];
passthru.tests.version = testers.testVersion {
package = aphorme;
command = "aphorme --version";
version = "aphorme ${version}";
};
meta = {
description = "Program launcher for window managers, written in Rust";
mainProgram = "aphorme";
homepage = "https://github.com/Iaphetes/aphorme_launcher";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ anytimetraveler ];
platforms = lib.platforms.linux;
};
}