nixpkgs/pkgs/by-name/kn/knossosnet/package.nix
2024-11-17 18:35:19 -04:00

36 lines
781 B
Nix

{
buildDotnetModule
, fetchFromGitHub
, lib
, openal
, dotnetCorePackages
}:
buildDotnetModule rec {
pname = "knossosnet";
version = "1.2.4";
src = fetchFromGitHub {
owner = "KnossosNET";
repo = "Knossos.NET";
rev = "v${version}";
hash = "sha256-vlSiM6kskV4wfBZF7Rv5ICyqKG0Zhz/iU8kflYOaf0U=";
};
patches = [ ./targetframework.patch ];
dotnet-sdk = dotnetCorePackages.sdk_6_0;
nugetDeps = ./deps.nix;
executables = [ "Knossos.NET" ];
runtimeDeps = [ openal ];
meta = with lib; {
homepage = "https://github.com/KnossosNET/Knossos.NET";
description = "Multi-platform launcher for Freespace 2 Open";
license = licenses.gpl3Only;
mainProgram = "Knossos.NET";
maintainers = with maintainers; [ cdombroski ];
};
}