summary refs log tree commit diff
path: root/pkgs/servers/web-apps/baget/default.nix
blob: d19bb2906b3516e1ac1ec94e0c4ec00484c44c8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ buildDotnetModule, lib, fetchFromGitHub, dotnetCorePackages }:

buildDotnetModule rec {
  pname = "BaGet";
  version = "0.4.0-preview2";

  src = fetchFromGitHub {
    owner = "loic-sharma";
    repo = pname;
    rev = "v${version}";
    sha256 = "S/3CjXB/fBDzxLuQBQB3CKgEkmzUA8ZzzvzXLN8hfBU=";
  };

  projectFile = "src/BaGet/BaGet.csproj";
  nugetDeps = ./deps.nix;

  dotnet-sdk = dotnetCorePackages.sdk_3_1;
  dotnet-runtime = dotnetCorePackages.aspnetcore_3_1;

  passthru.updateScript = ./updater.sh;

  meta = with lib; {
    description = "A lightweight NuGet and symbol server";
    license = licenses.mit;
    homepage = "https://loic-sharma.github.io/BaGet/";
    platforms = platforms.all;
    maintainers = [ maintainers.abbradar ];
  };
}