Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
76 lines
1.5 KiB
Nix
76 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
clangStdenv,
|
|
gtk3,
|
|
xorg,
|
|
perl,
|
|
pkg-config,
|
|
openssl,
|
|
speechd-minimal,
|
|
libxkbcommon,
|
|
libGL,
|
|
wayland,
|
|
}:
|
|
let
|
|
rpathLibs = [
|
|
speechd-minimal
|
|
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.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PhilipK";
|
|
repo = "BoilR";
|
|
tag = "v.${version}";
|
|
hash = "sha256-qCY/I3ACrs5mWpgN+xmWi42rF9Mzqxxce2DIA+R1RNs=";
|
|
};
|
|
|
|
cargoHash = "sha256-9B2NcFO/Bj553yaOMi7oBZJTFtCQmBnJkU9nK+vjThU=";
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
pkg-config
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|