nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 wayland, 6 libxkbcommon, 7 libGL, 8 stdenv, 9 testers, 10 aphorme, 11 autoPatchelfHook, 12}: 13 14rustPlatform.buildRustPackage rec { 15 pname = "aphorme"; 16 version = "0.1.19"; 17 18 src = fetchFromGitHub { 19 owner = "Iaphetes"; 20 repo = "aphorme_launcher"; 21 tag = "v${version}"; 22 hash = "sha256-p1ZIMMDyQWVzoeyHb3sbeV6XQwbIDoQwJU8ynI8hGUI="; 23 }; 24 25 cargoHash = "sha256-knxFQ9hBBc8zATwf4ntbbmT2a+33uYcqax8AAFsj/NM="; 26 27 # No tests exist 28 doCheck = false; 29 30 buildInputs = [ (lib.getLib stdenv.cc.cc) ]; 31 nativeBuildInputs = [ autoPatchelfHook ]; 32 33 runtimeDependencies = [ 34 wayland 35 libGL 36 libxkbcommon 37 ]; 38 39 passthru.tests.version = testers.testVersion { 40 package = aphorme; 41 command = "aphorme --version"; 42 version = "aphorme ${version}"; 43 }; 44 45 meta = { 46 description = "Program launcher for window managers, written in Rust"; 47 mainProgram = "aphorme"; 48 homepage = "https://github.com/Iaphetes/aphorme_launcher"; 49 license = lib.licenses.gpl3Plus; 50 maintainers = with lib.maintainers; [ anytimetraveler ]; 51 platforms = lib.platforms.linux; 52 }; 53}