nixpkgs/pkgs/servers/web-apps/baget/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1001 B
Nix
Raw Normal View History

2020-05-13 18:29:39 +01:00
{ 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=";
};
2022-09-26 13:41:55 +01:00
postPatch = ''
# this fixes NU1605 errors
substituteInPlace \
src/BaGet.Azure/BaGet.Azure.csproj \
--replace \
'Include="Microsoft.Azure.Cosmos.Table" Version="1.0.0"' \
'Include="Microsoft.Azure.Cosmos.Table" Version="2.0.0-preview"'
'';
2020-05-13 18:29:39 +01:00
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/";
maintainers = [ maintainers.abbradar ];
};
}