evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sk / skeditor / package.nix
blob337122b218e78859d2aa56a46798eb2796ee2750
2   lib,
3   buildDotnetModule,
4   fetchFromGitHub,
5   dotnetCorePackages,
6   makeDesktopItem,
7   copyDesktopItems,
8   iconConvTools,
9 }:
10 buildDotnetModule rec {
11   pname = "skeditor";
12   version = "2.8.1";
14   src = fetchFromGitHub {
15     owner = "skeditorteam";
16     repo = "skeditor";
17     rev = "v${version}";
18     hash = "sha256-ojE276nonX52UTjvdKL5mX8dj3MNElqlR1A/c0vT9WE=";
19   };
21   projectFile = "SkEditor/SkEditor.csproj";
22   executables = [ "SkEditor" ];
23   nugetDeps = ./nuget-deps.nix;
25   dotnet-sdk = dotnetCorePackages.sdk_8_0;
26   dotnet-runtime = dotnetCorePackages.runtime_8_0;
28   nativeBuildInputs = [
29     iconConvTools
30     copyDesktopItems
31   ];
33   postInstall = ''
34     icoFileToHiColorTheme SkEditor/Assets/SkEditor.ico skeditor $out
35   '';
37   desktopItems = [
38     (makeDesktopItem {
39       name = pname;
40       desktopName = "SkEditor";
41       exec = meta.mainProgram;
42       icon = "SkEditor";
43       startupWMClass = "SkEditor";
44       genericName = "Skript Editor";
45       keywords = [
46         "skeditor"
47         "SkEditor"
48       ];
49       categories = [
50         "Utility"
51         "TextEditor"
52         "Development"
53         "IDE"
54       ];
55     })
56   ];
58   passthru.updateScript = ./update.sh;
60   meta = {
61     description = "App for editing Skript files";
62     homepage = "https://github.com/SkEditorTeam/SkEditor";
63     changelog = "https://github.com/SkEditorTeam/SkEditor/releases/tag/v${version}";
64     license = lib.licenses.mit;
65     mainProgram = "SkEditor";
66     maintainers = with lib.maintainers; [ eveeifyeve ];
67   };