Files
nixpkgs/pkgs/by-name/ro/rofi-games/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02: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.13.0";
src = fetchFromGitHub {
owner = "Rolv-Apneseth";
repo = "rofi-games";
tag = "v${finalAttrs.version}";
hash = "sha256-Id2PfgLc9MQI82u7qKKJVaqpGfGFfCKZldVKlYHc5JE=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-EO5gVoZIB7Dduc8LfXwcBriPYyIfGNWEog1bCkegqcI=";
};
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.agpl3Only;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux;
};
})