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