Merge pull request #247991 from foolnotion/boilr

boilr: init at 1.9.4
This commit is contained in:
Aleksana 2024-06-28 22:31:26 +08:00 committed by GitHub
commit 77442ec334
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,68 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, clangStdenv
, gtk3
, xorg
, perl
, openssl
, speechd
, libxkbcommon
, libGL
, wayland
}:
let
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; } rec {
pname = "BoilR";
version = "1.9.4";
src = fetchFromGitHub {
owner = "PhilipK";
repo = "BoilR";
rev = "v.${version}";
hash = "sha256-bwCTsoZ/9TeO3wyEcOqxKePnj9glsDXWUBCLd3nVT80=";
};
cargoHash = "sha256-nAZU1xVpeRXubotla4I6InGMH4lisPMOnoqaK5mBPCM=";
nativeBuildInputs = [ perl ];
buildInputs = rpathLibs;
postInstall = ''
patchelf --add-rpath "${lib.makeLibraryPath rpathLibs}" $out/bin/boilr
install -Dpm 0644 flatpak/io.github.philipk.boilr.desktop $out/share/applications/boilr.desktop
install -Dpm 0644 resources/io.github.philipk.boilr.png $out/share/pixmaps/io.github.philipk.boilr.png
'';
dontPatchELF = true;
meta = {
description =
"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 ];
mainProgram = "boilr";
};
}