70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
clangStdenv,
|
|
gtk3,
|
|
xorg,
|
|
perl,
|
|
openssl,
|
|
speechd,
|
|
libxkbcommon,
|
|
libGL,
|
|
wayland,
|
|
}: let
|
|
version = "1.9.1";
|
|
hash = "sha256-mdkRuEzfWhdbX0DD6uwc1o8kXjqk1Y0+FFKHrM2m81w=";
|
|
cargoHash = "sha256-5nhtGqukZ8tp7gPV+JiUEHTzWUj6JtsB2i7bODcXJSc=";
|
|
|
|
rpathLibs = [
|
|
speechd
|
|
openssl
|
|
gtk3
|
|
libxkbcommon
|
|
libGL
|
|
|
|
# WINIT_UNIX_BACKEND=wayland
|
|
wayland
|
|
|
|
# WINIT_UNIX_BACKEND=x11
|
|
xorg.libXcursor
|
|
xorg.libXrandr
|
|
xorg.libXi
|
|
xorg.libX11
|
|
xorg.libxcb
|
|
];
|
|
in
|
|
rustPlatform.buildRustPackage.override {stdenv = clangStdenv;} {
|
|
pname = "BoilR";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PhilipK";
|
|
repo = "BoilR";
|
|
rev = "v.${version}";
|
|
inherit hash;
|
|
};
|
|
|
|
warning = builtins.trace "Is boilr part of nixpkgs? https://github.com/NixOS/nixpkgs/pull/247991" "";
|
|
|
|
inherit cargoHash;
|
|
|
|
nativeBuildInputs = [perl];
|
|
|
|
buildInputs = rpathLibs;
|
|
|
|
postInstall = ''
|
|
patchelf --add-rpath "${lib.makeLibraryPath rpathLibs}" $out/bin/boilr
|
|
'';
|
|
|
|
dontPatchELF = true;
|
|
|
|
meta = {
|
|
description = "BoilR automatically adds (almost) all your games to your Steam library (including image art)";
|
|
homepage = "https://github.com/PhilipK/BoilR";
|
|
license = with lib.licenses; [asl20 mit];
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [foolnotion];
|
|
};
|
|
}
|