nixpkgs/pkgs/by-name/on/onagre/package.nix

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

59 lines
1.3 KiB
Nix
Raw Normal View History

2023-03-28 06:44:27 +00:00
{ lib
, fetchFromGitHub
2024-05-13 08:34:18 +00:00
, makeWrapper
2023-03-28 06:44:27 +00:00
, rustPlatform
, cmake
, pkgconf
, freetype
, expat
2024-05-13 08:34:18 +00:00
, wayland
, xorg
, libxkbcommon
, pop-launcher
, vulkan-loader
, libGL
2023-03-28 06:44:27 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "onagre";
2024-05-13 08:34:18 +00:00
version = "1.1.0";
2023-03-28 06:44:27 +00:00
src = fetchFromGitHub {
2024-05-13 08:34:18 +00:00
owner = "onagre-launcher";
repo = "onagre";
rev = "1.1.0";
hash = "sha256-ASeLvgj2RyhsZQtkUTYeA7jWyhbLg8yl6HbN2A/Sl2M=";
2023-03-28 06:44:27 +00:00
};
2024-05-13 08:34:18 +00:00
cargoHash = "sha256-17Hw3jtisOXwARpp0jB0hrNax7nzMWS0kCE3ZAruBj8=";
2023-03-28 06:44:27 +00:00
2024-05-13 08:34:18 +00:00
nativeBuildInputs = [ makeWrapper cmake pkgconf ];
buildInputs = [
expat
freetype
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
];
2023-03-28 06:44:27 +00:00
2024-05-13 08:34:18 +00:00
postFixup = let
rpath = lib.makeLibraryPath [ libGL vulkan-loader wayland libxkbcommon ];
in ''
patchelf --set-rpath ${rpath} $out/bin/onagre
wrapProgram $out/bin/onagre \
--prefix PATH ':' ${lib.makeBinPath [
pop-launcher
]}
'';
2023-03-28 06:44:27 +00:00
meta = with lib; {
description = "General purpose application launcher for X and wayland inspired by rofi/wofi and alfred";
2024-05-13 08:34:18 +00:00
homepage = "https://github.com/onagre-launcher/onagre";
2023-03-28 06:44:27 +00:00
license = licenses.mit;
2024-05-13 08:34:18 +00:00
maintainers = [ maintainers.jfvillablanca maintainers.ilya-epifanov ];
2023-03-28 06:44:27 +00:00
platforms = platforms.linux;
2024-02-11 02:19:15 +00:00
mainProgram = "onagre";
2023-03-28 06:44:27 +00:00
};
}