tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fehlstart: unstable-2016-05-23 -> 0.5-unstable-2025-01-12
TomaSajt
6 months ago
d3274f6f
85dab740
+34
-28
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
fe
fehlstart
package.nix
use-nix-profiles.patch
+24
-18
pkgs/by-name/fe/fehlstart/package.nix
···
2
2
lib,
3
3
stdenv,
4
4
pkg-config,
5
5
-
gtk2,
6
6
-
keybinder,
7
7
-
fetchFromGitLab,
5
5
+
gtk3,
6
6
+
glib,
7
7
+
keybinder3,
8
8
+
fetchFromGitea,
8
9
}:
9
10
10
11
stdenv.mkDerivation {
11
12
pname = "fehlstart";
12
12
-
version = "unstable-2016-05-23";
13
13
+
version = "0.5-unstable-2025-01-12";
13
14
14
14
-
src = fetchFromGitLab {
15
15
-
owner = "fehlstart";
15
15
+
src = fetchFromGitea {
16
16
+
domain = "codeberg.org";
17
17
+
owner = "chuvok";
16
18
repo = "fehlstart";
17
17
-
rev = "9f4342d75ec5e2a46c13c99c34894bc275798441";
18
18
-
sha256 = "1rfzh7w6n2s9waprv7m1bhvqrk36a77ada7w655pqiwkhdj5q95i";
19
19
+
rev = "cf08d6c3964da9abc8d1af0725894fef62352064";
20
20
+
hash = "sha256-qq0IhLzSvYnooPb4w+lno8P/tbedrDKTk27HGtQlp2I=";
19
21
};
20
22
21
23
patches = [ ./use-nix-profiles.patch ];
24
24
+
25
25
+
strictDeps = true;
26
26
+
22
27
nativeBuildInputs = [ pkg-config ];
28
28
+
23
29
buildInputs = [
24
24
-
gtk2
25
25
-
keybinder
30
30
+
gtk3
31
31
+
keybinder3
26
32
];
27
33
28
28
-
preConfigure = ''
29
29
-
export PREFIX=$out
30
30
-
'';
34
34
+
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev glib}/include/gio-unix-2.0";
35
35
+
36
36
+
makeFlags = [ "PREFIX=$(out)" ];
31
37
32
32
-
meta = with lib; {
38
38
+
meta = {
33
39
description = "Small desktop application launcher with reasonable memory footprint";
34
34
-
homepage = "https://gitlab.com/fehlstart/fehlstart";
35
35
-
license = licenses.gpl3;
36
36
-
maintainers = [ maintainers.mounium ];
37
37
-
platforms = platforms.all;
40
40
+
homepage = "https://codeberg.org/Chuvok/fehlstart";
41
41
+
license = lib.licenses.gpl3Only;
42
42
+
maintainers = [ lib.maintainers.mounium ];
43
43
+
platforms = lib.platforms.linux;
38
44
mainProgram = "fehlstart";
39
45
};
40
46
}
+10
-10
pkgs/by-name/fe/fehlstart/use-nix-profiles.patch
···
1
1
-
--- fehlstart-9f4342d75ec5e2a46c13c99c34894bc275798441-src/fehlstart.c 1970-01-01 01:00:01.000000000 +0100
2
2
-
+++ fehlstart.c 2016-08-10 12:21:11.231638418 +0200
3
3
-
@@ -779,8 +779,15 @@
4
4
-
read_settings(setting_file, &settings);
5
5
-
update_commands();
6
6
-
g_hash_table_foreach(action_map, update_launcher, NULL);
7
7
-
- add_launchers(STR_S(APPLICATIONS_DIR_0));
8
8
-
- add_launchers(STR_S(APPLICATIONS_DIR_1));
9
9
-
- add_launchers(STR_S(USER_APPLICATIONS_DIR));
1
1
+
diff --git a/fehlstart.c b/fehlstart.c
2
2
+
index b33c8ff..ce467b5 100644
3
3
+
--- a/fehlstart.c
4
4
+
+++ b/fehlstart.c
5
5
+
@@ -802,6 +802,16 @@ static void* update_all(void* user_data)
6
6
+
add_launchers(APPLICATIONS_DIR_0);
7
7
+
add_launchers(APPLICATIONS_DIR_1);
8
8
+
add_launchers(USER_APPLICATIONS_DIR);
10
9
+ const char* nixprofiles = getenv("NIX_PROFILES");
11
10
+ if(nixprofiles != NULL) {
12
11
+ const char* pch = strtok(nixprofiles, " ");
13
12
+ while (pch != NULL)
14
13
+ {
15
15
-
+ String nix_dir = str_concat((String) { pch, strlen(pch), false },STR_S("/share/applications"));
14
14
+
+ char* nix_dir = g_strconcat(pch, "/share/applications", NULL);
16
15
+ add_launchers(nix_dir);
17
16
+ pch = strtok(NULL, " ");
18
17
+ }
19
18
+ }
20
19
return NULL;
21
20
}
21
21
+