mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
e33d2c0234
Thanks to the following comment, onagre is properly running without
issues.
2b6b451c39 (r80485137)
44 lines
888 B
Nix
44 lines
888 B
Nix
{ stdenv
|
|
, lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, freetype
|
|
, expat
|
|
, wayland
|
|
, libX11
|
|
, libGL
|
|
, libxkbcommon
|
|
, vulkan-loader
|
|
, pop-launcher
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "onagre";
|
|
version = "1.0.0-alpha.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oknozor";
|
|
repo = "onagre";
|
|
rev = version;
|
|
sha256 = "sha256-hP+slfCWgsTgR2ZUjAmqx9f7+DBu3MpSLvaiZhqNK1Q=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-IOhAGrAiT2mnScNP7k7XK9CETUr6BjGdQVdEUvTYQT4=";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ freetype expat wayland libX11 libGL libxkbcommon vulkan-loader ];
|
|
|
|
postFixup = ''
|
|
patchelf --set-rpath ${lib.makeLibraryPath buildInputs} $out/bin/onagre
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/oknozor/onagre";
|
|
description = "General application launcher for X/Wayland";
|
|
license = licenses.mit;
|
|
};
|
|
}
|