Merge pull request #304603 from AnyTimeTraveler/master

aphorme: init at 0.1.19
This commit is contained in:
éclairevoyant 2024-04-22 18:07:48 +00:00 committed by GitHub
commit 06fa7d16c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 58 additions and 0 deletions

View file

@ -1448,6 +1448,12 @@
githubId = 4194320;
name = "Anton Schirg";
};
anytimetraveler = {
email = "simon@simonscode.org";
github = "AnyTimeTraveler";
githubId = 19378309;
name = "Simon Struck";
};
aorith = {
email = "aomanu+nixpkgs@gmail.com";
github = "aorith";

View file

@ -0,0 +1,52 @@
{ 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 = [ stdenv.cc.cc.lib ];
nativeBuildInputs = [ autoPatchelfHook ];
runtimeDependencies = [
wayland
libGL
libxkbcommon
];
passthru.tests.version = testers.testVersion {
package = aphorme;
command = "aphorme --version";
version = "aphorme ${version}";
};
meta = {
description = "A 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;
};
}