1{
2 lib,
3 fetchFromGitHub,
4 flutter327,
5 makeDesktopItem,
6 copyDesktopItems,
7}:
8
9flutter327.buildFlutterApplication rec {
10 pname = "evolve-core";
11 version = "1.7";
12
13 src = fetchFromGitHub {
14 owner = "arcnations-united";
15 repo = "evolve-core";
16 tag = "v${version}";
17 hash = "sha256-U5qMJ3aquD2EzWXwTKw0GJPdaCmK68v8DLdJMAwKrzs=";
18 };
19
20 pubspecLock = lib.importJSON ./pubspec.lock.json;
21
22 desktopItems = [
23 (makeDesktopItem {
24 name = "Evolve Core";
25 exec = "evolvecore";
26 icon = "evolvecore";
27 desktopName = "evolvecore";
28 genericName = "A modern GTK theme manager";
29 categories = [ "Utility" ];
30 comment = "A modern GTK Theme Manager for GNOME with GTK 4.0 support and some cool features";
31 terminal = false;
32 type = "Application";
33 startupWMClass = "evolvecore";
34 })
35 ];
36
37 nativeBuildInputs = [
38 copyDesktopItems
39 ];
40
41 postInstall = ''
42 install -D assets/iconfile.png -t $out/share/icons
43 mv $out/share/icons/iconfile.png $out/share/icons/evolvecore.png
44 '';
45
46 meta = {
47 description = "Modern GTK Theme Manager for GNOME with GTK 4.0 support and some cool features";
48 homepage = "https://github.com/arcnations-united/evolve-core";
49 changelog = "https://github.com/arcnations-united/evolve-core/releases/tag/v${version}";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ genga898 ];
52 mainProgram = "evolvecore";
53 platforms = lib.platforms.linux;
54 };
55
56}