2025-03-13 00:24:50 +01:00

63 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
cargo,
just,
rofi,
pkg-config,
glib,
cairo,
pango,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rofi-games";
version = "1.10.9";
src = fetchFromGitHub {
owner = "Rolv-Apneseth";
repo = "rofi-games";
tag = "v${finalAttrs.version}";
hash = "sha256-VkhavN1nte0JYRn8PRER9B6baGiRr4Qr/L/yZ0cXZmc=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-Ld6lFljnfNUwhoDOb8XdFka87E0Y+KN1GFnubUza/LY=";
};
patches = [
# fix the install locations of files and set default just task
./fix-justfile.patch
];
env.PKGDIR = placeholder "out";
strictDeps = true;
nativeBuildInputs = [
rustPlatform.cargoSetupHook
cargo
just
rofi
pkg-config
];
buildInputs = [
glib
cairo
pango
];
meta = {
changelog = "https://github.com/Rolv-Apneseth/rofi-games/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Rofi plugin which adds a mode that will list available games for launch along with their box art";
homepage = "https://github.com/Rolv-Apneseth/rofi-games";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux;
};
})