Skip to content

Commit

Permalink
Newtonsoft.Json 6.0.8 -> 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nek0 committed Aug 11, 2018
1 parent 76de638 commit c632384
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions pkgs/top-level/dotnet-packages.nix
Expand Up @@ -872,40 +872,11 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
};
};

NewtonsoftJson = buildDotnetPackage rec {
NewtonsoftJson = fetchNuGet {
baseName = "Newtonsoft.Json";
version = "6.0.8";

src = fetchurl {
name = "${baseName}-${version}.tar.gz";
url = "https://github.com/JamesNK/Newtonsoft.Json/archive/${version}.tar.gz";
sha256 = "14znf5mycka578bxjnlnz6a3f9nfkc682hgmgg42gdzksnarvhlm";
};

buildInputs = [
fsharp
dotnetPackages.NUnit
dotnetPackages.SystemCollectionsImmutable
dotnetPackages.Autofac
];

patches = [ ../development/dotnet-modules/patches/newtonsoft-json.references.patch ];

postConfigure = ''
# Just to make sure there's no attempt to call these executables
rm -rvf Tools
'';

xBuildFiles = [ "Src/Newtonsoft.Json.sln" ];
outputFiles = [ "Src/Newtonsoft.Json/bin/Release/Net45/*" ];

meta = {
description = "Popular high-performance JSON framework for .NET";
homepage = "https://www.newtonsoft.com/json";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ obadz ];
platforms = with stdenv.lib.platforms; linux;
};
version = "11.0.2";
sha256 = "07na27n4mlw77f3hg5jpayzxll7f4gyna6x7k9cybmxpbs6l77k7";
outputFiles = [ "*" ];
};

Nuget = buildDotnetPackage {
Expand Down

0 comments on commit c632384

Please sign in to comment.