diff --git a/pkgs/by-name/kr/kryptor/deps.nix b/pkgs/by-name/kr/kryptor/deps.nix index 190f7bea309d..38e41fb90d73 100644 --- a/pkgs/by-name/kr/kryptor/deps.nix +++ b/pkgs/by-name/kr/kryptor/deps.nix @@ -1,9 +1,31 @@ -{ fetchNuGet }: [ - (fetchNuGet { pname = "Geralt"; version = "3.0.1"; hash = "sha256-jNiRhjqY4juSR68zHfkW+IKnnq2qXlXi3hXZrPyRlps="; }) - (fetchNuGet { pname = "libsodium"; version = "1.0.19"; hash = "sha256-EXeaeLf3kpeFw5ecr/D/hZbOdSH+t518pV6HwOxc8ec="; }) - (fetchNuGet { pname = "McMaster.Extensions.CommandLineUtils"; version = "4.1.0"; hash = "sha256-lPAL8r1/y6WmWpgKqYHzIa3iEz1+Soqkud4XnbpN/N4="; }) - (fetchNuGet { pname = "Microsoft.NET.ILLink.Tasks"; version = "8.0.6"; hash = "sha256-Red8XiAF5Td7yt7jSOgUSlgzSUV5F1Be1yv+WEzNjmo="; }) - (fetchNuGet { pname = "Microsoft.NETCore.App.Crossgen2.linux-x64"; version = "8.0.6"; hash = "sha256-6OQ+R8PUmZO6FjW4AmLdVFrwpzUQ/o8m8bZ2pYuISJg="; }) - (fetchNuGet { pname = "Monocypher"; version = "0.3.0"; hash = "sha256-InbhO6d2wZ96Zl69b+KIUVM6XRU1X1op6e15afx6hps="; }) - (fetchNuGet { pname = "System.ComponentModel.Annotations"; version = "5.0.0"; hash = "sha256-0pST1UHgpeE6xJrYf5R+U7AwIlH3rVC3SpguilI/MAg="; }) +# This file was automatically generated by passthru.fetch-deps. +# Please dont edit it manually, your changes might get overwritten! + +{ fetchNuGet }: +[ + (fetchNuGet { + pname = "Geralt"; + version = "2.1.0"; + hash = "sha256-BCXJKa9200GFqlm0GFAyAxGRzlorFxHct83VXyZZlvQ="; + }) + (fetchNuGet { + pname = "libsodium"; + version = "1.0.18.4"; + hash = "sha256-mdV0etNrKc5rjsIxhCkj7qafT+yv6PTuYCheveVjPwI="; + }) + (fetchNuGet { + pname = "McMaster.Extensions.CommandLineUtils"; + version = "4.0.2"; + hash = "sha256-e+UEOOxYPOEcX6QXTU8F+G5093qPSrfOqsYCLDcwSvQ="; + }) + (fetchNuGet { + pname = "Monocypher"; + version = "0.3.0"; + hash = "sha256-InbhO6d2wZ96Zl69b+KIUVM6XRU1X1op6e15afx6hps="; + }) + (fetchNuGet { + pname = "System.ComponentModel.Annotations"; + version = "5.0.0"; + hash = "sha256-0pST1UHgpeE6xJrYf5R+U7AwIlH3rVC3SpguilI/MAg="; + }) ] diff --git a/pkgs/by-name/kr/kryptor/package.nix b/pkgs/by-name/kr/kryptor/package.nix index a130ba4370c5..8efa4a144654 100644 --- a/pkgs/by-name/kr/kryptor/package.nix +++ b/pkgs/by-name/kr/kryptor/package.nix @@ -1,7 +1,9 @@ -{ lib -, buildDotnetModule -, fetchFromGitHub -, dotnetCorePackages +{ + lib, + buildDotnetModule, + fetchFromGitHub, + dotnetCorePackages, + versionCheckHook, }: buildDotnetModule rec { @@ -11,17 +13,24 @@ buildDotnetModule rec { src = fetchFromGitHub { owner = "samuel-lucas6"; repo = "Kryptor"; - rev = "v${version}"; + tag = "v${version}"; hash = "sha256-BxUmDzmfvRelQDHb5uLcQ2YPL7ClxZNFGm/gQoDK8t8="; }; - dotnet-sdk = dotnetCorePackages.sdk_6_0; + dotnet-sdk = dotnetCorePackages.sdk_8_0; projectFile = "src/Kryptor.sln"; nugetDeps = ./deps.nix; - executables = ["kryptor"]; + executables = [ "kryptor" ]; - dotnetFlags = ["-p:IncludeNativeLibrariesForSelfExtract=true"]; + dotnetFlags = [ "-p:TargetFramework=net8.0" ]; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru = { + updateScript = ./update.sh; + }; meta = { changelog = "https://github.com/samuel-lucas6/Kryptor/releases/tag/v${version}"; @@ -29,7 +38,10 @@ buildDotnetModule rec { homepage = "https://github.com/samuel-lucas6/Kryptor"; license = lib.licenses.gpl3Only; mainProgram = "kryptor"; - maintainers = with lib.maintainers; [ arthsmn ]; + maintainers = with lib.maintainers; [ + arthsmn + gepbird + ]; platforms = lib.platforms.all; }; } diff --git a/pkgs/by-name/kr/kryptor/update.sh b/pkgs/by-name/kr/kryptor/update.sh new file mode 100755 index 000000000000..1e6e7d7646de --- /dev/null +++ b/pkgs/by-name/kr/kryptor/update.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env nix-shell +#!nix-shell --pure -i bash -p bash nix nix-update git cacert +set -euo pipefail + +nix-update kryptor +$(nix-build . -A kryptor.fetch-deps --no-out-link)