diff --git a/pkgs/by-name/im/imewlconverter/deps.nix b/pkgs/by-name/im/imewlconverter/deps.nix new file mode 100644 index 000000000000..b4fd0f4ea255 --- /dev/null +++ b/pkgs/by-name/im/imewlconverter/deps.nix @@ -0,0 +1,21 @@ +# This file was automatically generated by passthru.fetch-deps. +# Please dont edit it manually, your changes might get overwritten! + +{ fetchNuGet }: +[ + (fetchNuGet { + pname = "CSharpier"; + version = "0.27.3"; + hash = "sha256-9g5WA+ii6ovKVGwpTaNIhs/Oti9YLwd//UhbNbBkn8E="; + }) + (fetchNuGet { + pname = "SharpZipLib"; + version = "1.4.2"; + hash = "sha256-/giVqikworG2XKqfN9uLyjUSXr35zBuZ2FX2r8X/WUY="; + }) + (fetchNuGet { + pname = "UTF.Unknown"; + version = "2.5.1"; + hash = "sha256-9D6TqKSPsjzSly0mtUGZJbrNAJ7ftz9LJjWNwnnQMz4="; + }) +] diff --git a/pkgs/by-name/im/imewlconverter/package.nix b/pkgs/by-name/im/imewlconverter/package.nix new file mode 100644 index 000000000000..366700f9c416 --- /dev/null +++ b/pkgs/by-name/im/imewlconverter/package.nix @@ -0,0 +1,31 @@ +{ + fetchFromGitHub, + lib, + buildDotnetModule, + dotnetCorePackages, +}: + +buildDotnetModule { + pname = "imewlconverter"; + version = "3.1.1"; + src = fetchFromGitHub { + owner = "studyzy"; + repo = "imewlconverter"; + rev = "v3.1.1"; + hash = "sha256-lrYqQWh+PZreJ6oJg+OCipiqUyfG/2moP/n+jR+Kcj8="; + }; + + projectFile = "src/ImeWlConverterCmd/ImeWlConverterCmd.csproj"; + nugetDeps = ./deps.nix; + + dotnet-sdk = dotnetCorePackages.sdk_8_0; + dotnet-runtime = dotnetCorePackages.aspnetcore_8_0; + + meta = { + mainProgram = "ImeWlConverterCmd"; + description = "FOSS program for converting IME dictionaries"; + homepage = "https://github.com/studyzy/imewlconverter"; + maintainers = with lib.maintainers; [ xddxdd ]; + license = lib.licenses.gpl3Only; + }; +}