fehlstart: unstable-2016-05-23 -> 0.5-unstable-2025-01-12

TomaSajt d3274f6f 85dab740

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