nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

rofi-games: init at 1.10.2

TomaSajt a8edfd4e 223f6113

+88
+26
pkgs/by-name/ro/rofi-games/fix-justfile.patch
··· 1 + diff --git a/justfile b/justfile 2 + index cd111a1..b6f3827 100644 3 + --- a/justfile 4 + +++ b/justfile 5 + @@ -13,9 +13,9 @@ PKGNAME := env("PKGNAME", "rofi-games") 6 + PKGDIR := env("PKGDIR", "") 7 + LIB_NAME := "librofi_games.so" 8 + PLUGIN_NAME := "games.so" 9 + -THEMES_DIR := "/usr/share/rofi/themes" 10 + -LICENSES_DIR := "/usr/share/licenses/" + PKGNAME 11 + -PLUGINS_DIR := `pkg-config --variable pluginsdir rofi || if test -d "/usr/lib64"; then echo "/usr/lib64/rofi"; else echo "/usr/lib/rofi"; fi` 12 + +THEMES_DIR := "/share/rofi/themes" 13 + +LICENSES_DIR := "/share/licenses/" + PKGNAME 14 + +PLUGINS_DIR := "/lib/rofi" 15 + PLUGIN_PATH := join(PLUGINS_DIR, PLUGIN_NAME) 16 + 17 + # Set rust flags if running a version of `rofi` with changes newer than the base `1.7.5` 18 + @@ -32,7 +32,7 @@ RUSTFLAGS := if `rofi -version` =~ '^Version: 1\.7\.5(?:\+wayland2)?$' { "" } el 19 + 20 + # List commands 21 + default: 22 + - just --list 23 + + just build 24 + 25 + # Build 26 + build:
+62
pkgs/by-name/ro/rofi-games/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + rustPlatform, 6 + cargo, 7 + just, 8 + rofi, 9 + pkg-config, 10 + glib, 11 + cairo, 12 + pango, 13 + }: 14 + 15 + stdenv.mkDerivation (finalAttrs: { 16 + pname = "rofi-games"; 17 + version = "1.10.2"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "Rolv-Apneseth"; 21 + repo = "rofi-games"; 22 + rev = "refs/tags/v${finalAttrs.version}"; 23 + hash = "sha256-4L3gk/RG9g5QnUW1AJkZIl0VkBiO/L0HUBC3pibN/qo="; 24 + }; 25 + 26 + cargoDeps = rustPlatform.fetchCargoTarball { 27 + inherit (finalAttrs) pname version src; 28 + hash = "sha256-cU7gp/c1yx3ZLaZuGs1bvOV4AKgLusraILVJ2EhH1iA="; 29 + }; 30 + 31 + patches = [ 32 + # fix the install locations of files and set default just task 33 + ./fix-justfile.patch 34 + ]; 35 + 36 + env.PKGDIR = placeholder "out"; 37 + 38 + strictDeps = true; 39 + 40 + nativeBuildInputs = [ 41 + rustPlatform.cargoSetupHook 42 + cargo 43 + just 44 + rofi 45 + pkg-config 46 + ]; 47 + 48 + buildInputs = [ 49 + glib 50 + cairo 51 + pango 52 + ]; 53 + 54 + meta = { 55 + changelog = "https://github.com/Rolv-Apneseth/rofi-games/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 56 + description = "Rofi plugin which adds a mode that will list available games for launch along with their box art"; 57 + homepage = "https://github.com/Rolv-Apneseth/rofi-games"; 58 + license = lib.licenses.gpl2Only; 59 + maintainers = with lib.maintainers; [ tomasajt ]; 60 + platforms = lib.platforms.linux; 61 + }; 62 + })