fehlstart: unstable-2016-05-23 -> 0.5-unstable-2025-01-12
This commit is contained in:
parent
85dab74090
commit
d3274f6f23
@ -2,39 +2,45 @@
|
|||||||
lib,
|
lib,
|
||||||
stdenv,
|
stdenv,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
gtk2,
|
gtk3,
|
||||||
keybinder,
|
glib,
|
||||||
fetchFromGitLab,
|
keybinder3,
|
||||||
|
fetchFromGitea,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "fehlstart";
|
pname = "fehlstart";
|
||||||
version = "unstable-2016-05-23";
|
version = "0.5-unstable-2025-01-12";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitea {
|
||||||
owner = "fehlstart";
|
domain = "codeberg.org";
|
||||||
|
owner = "chuvok";
|
||||||
repo = "fehlstart";
|
repo = "fehlstart";
|
||||||
rev = "9f4342d75ec5e2a46c13c99c34894bc275798441";
|
rev = "cf08d6c3964da9abc8d1af0725894fef62352064";
|
||||||
sha256 = "1rfzh7w6n2s9waprv7m1bhvqrk36a77ada7w655pqiwkhdj5q95i";
|
hash = "sha256-qq0IhLzSvYnooPb4w+lno8P/tbedrDKTk27HGtQlp2I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./use-nix-profiles.patch ];
|
patches = [ ./use-nix-profiles.patch ];
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk2
|
gtk3
|
||||||
keybinder
|
keybinder3
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev glib}/include/gio-unix-2.0";
|
||||||
export PREFIX=$out
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Small desktop application launcher with reasonable memory footprint";
|
description = "Small desktop application launcher with reasonable memory footprint";
|
||||||
homepage = "https://gitlab.com/fehlstart/fehlstart";
|
homepage = "https://codeberg.org/Chuvok/fehlstart";
|
||||||
license = licenses.gpl3;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = [ maintainers.mounium ];
|
maintainers = [ lib.maintainers.mounium ];
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.linux;
|
||||||
mainProgram = "fehlstart";
|
mainProgram = "fehlstart";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,21 @@
|
|||||||
--- fehlstart-9f4342d75ec5e2a46c13c99c34894bc275798441-src/fehlstart.c 1970-01-01 01:00:01.000000000 +0100
|
diff --git a/fehlstart.c b/fehlstart.c
|
||||||
+++ fehlstart.c 2016-08-10 12:21:11.231638418 +0200
|
index b33c8ff..ce467b5 100644
|
||||||
@@ -779,8 +779,15 @@
|
--- a/fehlstart.c
|
||||||
read_settings(setting_file, &settings);
|
+++ b/fehlstart.c
|
||||||
update_commands();
|
@@ -802,6 +802,16 @@ static void* update_all(void* user_data)
|
||||||
g_hash_table_foreach(action_map, update_launcher, NULL);
|
add_launchers(APPLICATIONS_DIR_0);
|
||||||
- add_launchers(STR_S(APPLICATIONS_DIR_0));
|
add_launchers(APPLICATIONS_DIR_1);
|
||||||
- add_launchers(STR_S(APPLICATIONS_DIR_1));
|
add_launchers(USER_APPLICATIONS_DIR);
|
||||||
- add_launchers(STR_S(USER_APPLICATIONS_DIR));
|
|
||||||
+ const char* nixprofiles = getenv("NIX_PROFILES");
|
+ const char* nixprofiles = getenv("NIX_PROFILES");
|
||||||
+ if(nixprofiles != NULL) {
|
+ if(nixprofiles != NULL) {
|
||||||
+ const char* pch = strtok(nixprofiles, " ");
|
+ const char* pch = strtok(nixprofiles, " ");
|
||||||
+ while (pch != NULL)
|
+ while (pch != NULL)
|
||||||
+ {
|
+ {
|
||||||
+ String nix_dir = str_concat((String) { pch, strlen(pch), false },STR_S("/share/applications"));
|
+ char* nix_dir = g_strconcat(pch, "/share/applications", NULL);
|
||||||
+ add_launchers(nix_dir);
|
+ add_launchers(nix_dir);
|
||||||
+ pch = strtok(NULL, " ");
|
+ pch = strtok(NULL, " ");
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user