From 36897a543d83232afa052ebdcfdd278599f20713 Mon Sep 17 00:00:00 2001 From: xeals Date: Mon, 4 Mar 2024 14:37:06 +1100 Subject: [PATCH] thor: init at 1.0.4 --- pkgs/by-name/th/thor/nugetDeps.nix | 16 +++++++++++++++ pkgs/by-name/th/thor/package.nix | 32 ++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pkgs/by-name/th/thor/nugetDeps.nix create mode 100644 pkgs/by-name/th/thor/package.nix diff --git a/pkgs/by-name/th/thor/nugetDeps.nix b/pkgs/by-name/th/thor/nugetDeps.nix new file mode 100644 index 0000000..4bce53a --- /dev/null +++ b/pkgs/by-name/th/thor/nugetDeps.nix @@ -0,0 +1,16 @@ +# This file was automatically generated by passthru.fetch-deps. +# Please dont edit it manually, your changes might get overwritten! + +{ fetchNuGet }: [ + (fetchNuGet { pname = "K4os.Compression.LZ4"; version = "1.3.5"; sha256 = "1nv9inhz0n25lhkw9xgp6g5xbqmcdccdhx6mwrli0pdp6hjmlh9k"; }) + (fetchNuGet { pname = "K4os.Compression.LZ4.Streams"; version = "1.3.5"; sha256 = "09m0jxq6558r1v1l4rsc8c0n6nlacz2d8c03as6kvvvz2gr7h506"; }) + (fetchNuGet { pname = "K4os.Hash.xxHash"; version = "1.0.8"; sha256 = "0vz1f81z4rh7a576fdzbc6wmj7p4gaca1rch3anvh1s5qd7xdd10"; }) + (fetchNuGet { pname = "Serilog"; version = "3.0.0-dev-02022"; sha256 = "0c7gqhzkcdzmhycq60mzwqwcycl99ksk4q0pmwz140japasfhcqk"; }) + (fetchNuGet { pname = "Serilog.Exceptions"; version = "8.4.0"; sha256 = "1v0rnhr616wj85gb6wvafj22kvnphp7m9vsyalcc25hwa1jvlryr"; }) + (fetchNuGet { pname = "Serilog.Sinks.Console"; version = "4.1.1-dev-00910"; sha256 = "00h3sd0lxnx53jmgqh84pw73zk3d710dvlgkf4x135vfhax9bw7m"; }) + (fetchNuGet { pname = "SharpCompress"; version = "0.33.0"; sha256 = "1j94hfjvkygpp97svv75jay0rmnx9ygg86d5syyahl9hayns4ig9"; }) + (fetchNuGet { pname = "Spectre.Console"; version = "0.47.1-preview.0.8"; sha256 = "1r6v16lh7mqxxh3j9lqryif8skx3q9nkgf5gnp5xpc4im3a52wql"; }) + (fetchNuGet { pname = "System.IO.Pipelines"; version = "6.0.3"; sha256 = "1jgdazpmwc21dd9naq3l9n5s8a1jnbwlvgkf1pnm0aji6jd4xqdz"; }) + (fetchNuGet { pname = "System.Memory"; version = "4.5.5"; sha256 = "08jsfwimcarfzrhlyvjjid61j02irx6xsklf32rv57x2aaikvx0h"; }) + (fetchNuGet { pname = "System.Reflection.TypeExtensions"; version = "4.7.0"; sha256 = "04qw9km34pmzr2alckb3mqdb4fpqwlvzk59lg8c7jfidghcl4jqq"; }) +] diff --git a/pkgs/by-name/th/thor/package.nix b/pkgs/by-name/th/thor/package.nix new file mode 100644 index 0000000..f51852b --- /dev/null +++ b/pkgs/by-name/th/thor/package.nix @@ -0,0 +1,32 @@ +{ lib +, fetchFromGitHub +, buildDotnetModule +, dotnetCorePackages +}: + +buildDotnetModule rec { + pname = "thor"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "Samsung-Loki"; + repo = "Thor"; + rev = version; + hash = "sha256-tYzPpgbM9rCDdLW0ERZWmmxzMYpe1BNyFwmpaLQXRGQ="; + }; + + dotnet-sdk = dotnetCorePackages.sdk_7_0; + dotnet-runtime = dotnetCorePackages.runtime_7_0; + nugetDeps = ./nugetDeps.nix; + projectFile = "TheAirBlow.Thor.Shell/TheAirBlow.Thor.Shell.csproj"; + + postFixup = '' + mv $out/bin/TheAirBlow.Thor.Shell $out/bin/thor + ''; + + meta = { + homepage = "https://github.com/Samsung-Loki/Thor"; + description = "An alternative to Heimdall"; + license = lib.licenses.mpl20; + }; +}