|
4 | 4 | fetchFromGitHub, |
5 | 5 | kdePackages, |
6 | 6 | formats, |
| 7 | + nix-update-script, |
7 | 8 | themeConfig ? null, |
8 | 9 | embeddedTheme ? "astronaut", |
9 | 10 | }: |
10 | | -stdenvNoCC.mkDerivation rec { |
| 11 | +let |
| 12 | + configFile = (formats.ini { }).generate "" { General = themeConfig; }; |
| 13 | + basePath = "$out/share/sddm/themes/sddm-astronaut-theme"; |
| 14 | + sedString = "ConfigFile=Themes/"; |
| 15 | +in |
| 16 | +stdenvNoCC.mkDerivation { |
11 | 17 | pname = "sddm-astronaut"; |
12 | | - version = "1.0-unstable-2025-01-05"; |
| 18 | + version = "0-unstable-2025-12-06"; |
13 | 19 |
|
14 | 20 | src = fetchFromGitHub { |
15 | 21 | owner = "Keyitdev"; |
16 | 22 | repo = "sddm-astronaut-theme"; |
17 | | - rev = "11c0bf6147bbea466ce2e2b0559e9a9abdbcc7c3"; |
18 | | - hash = "sha256-gBSz+k/qgEaIWh1Txdgwlou/Lfrfv3ABzyxYwlrLjDk="; |
| 23 | + rev = "d73842c761f7d7859f3bdd80e4360f09180fad41"; |
| 24 | + hash = "sha256-+94WVxOWfVhIEiVNWwnNBRmN+d1kbZCIF10Gjorea9M="; |
19 | 25 | }; |
20 | 26 |
|
21 | 27 | dontWrapQtApps = true; |
22 | 28 |
|
23 | 29 | propagatedBuildInputs = with kdePackages; [ |
24 | | - qtsvg |
25 | | - qtmultimedia |
26 | | - qtvirtualkeyboard |
| 30 | + # avoid .dev outputs propagation |
| 31 | + qtsvg.out |
| 32 | + qtmultimedia.out |
| 33 | + qtvirtualkeyboard.out |
27 | 34 | ]; |
28 | 35 |
|
29 | | - installPhase = |
30 | | - let |
31 | | - iniFormat = formats.ini { }; |
32 | | - configFile = iniFormat.generate "" { General = themeConfig; }; |
| 36 | + installPhase = '' |
| 37 | + mkdir -p ${basePath} |
| 38 | + cp -r $src/* ${basePath} |
| 39 | + '' |
| 40 | + + lib.optionalString (embeddedTheme != "astronaut") '' |
33 | 41 |
|
34 | | - basePath = "$out/share/sddm/themes/sddm-astronaut-theme"; |
35 | | - sedString = "ConfigFile=Themes/"; |
36 | | - in |
37 | | - '' |
38 | | - mkdir -p ${basePath} |
39 | | - cp -r $src/* ${basePath} |
40 | | - '' |
41 | | - + lib.optionalString (embeddedTheme != "astronaut") '' |
| 42 | + # Replaces astronaut.conf with embedded theme in metadata.desktop on line 9. |
| 43 | + # ConfigFile=Themes/astronaut.conf. |
| 44 | + sed -i "s|^${sedString}.*\\.conf$|${sedString}${embeddedTheme}.conf|" ${basePath}/metadata.desktop |
| 45 | + '' |
| 46 | + + lib.optionalString (themeConfig != null) '' |
| 47 | + chmod u+w ${basePath}/Themes/ |
| 48 | + ln -sf ${configFile} ${basePath}/Themes/${embeddedTheme}.conf.user |
| 49 | + ''; |
42 | 50 |
|
43 | | - # Replaces astronaut.conf with embedded theme in metadata.desktop on line 9. |
44 | | - # ConfigFile=Themes/astronaut.conf. |
45 | | - sed -i "s|^${sedString}.*\\.conf$|${sedString}${embeddedTheme}.conf|" ${basePath}/metadata.desktop |
46 | | - '' |
47 | | - + lib.optionalString (themeConfig != null) '' |
48 | | - chmod u+w ${basePath}/Themes/ |
49 | | - ln -sf ${configFile} ${basePath}/Themes/${embeddedTheme}.conf.user |
50 | | - ''; |
| 51 | + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; |
51 | 52 |
|
52 | 53 | meta = { |
53 | 54 | description = "Modern looking qt6 sddm theme"; |
54 | | - homepage = "https://github.com/${src.owner}/${src.repo}"; |
| 55 | + homepage = "https://github.com/Keyitdev/sddm-astronaut-theme"; |
55 | 56 | license = lib.licenses.gpl3; |
56 | | - |
57 | 57 | platforms = lib.platforms.linux; |
58 | 58 | maintainers = with lib.maintainers; [ |
59 | 59 | danid3v |
60 | 60 | uxodb |
| 61 | + qweered |
61 | 62 | ]; |
62 | 63 | }; |
63 | 64 | } |
0 commit comments