Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ 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";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-p1ZIMMDyQWVzoeyHb3sbeV6XQwbIDoQwJU8ynI8hGUI=";
|
|
};
|
|
|
|
cargoHash = "sha256-aFoy5KTapx+5aIzvDwMfjxZQ6WKQtvX3h7rNX4LBeN8=";
|
|
|
|
# No tests exist
|
|
doCheck = false;
|
|
|
|
buildInputs = [ (lib.getLib stdenv.cc.cc) ];
|
|
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;
|
|
};
|
|
}
|