Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 pkgs,
5 buildDotnetPackage,
6 buildDotnetModule,
7 fetchurl,
8 fetchFromGitHub,
9 fetchNuGet,
10 glib,
11 mono,
12 overrides ? { },
13 boogie,
14 nuget,
15}:
16
17let
18 self = dotnetPackages // overrides;
19 dotnetPackages = with self; {
20 # ALIASES FOR MOVED PACKAGES
21
22 Boogie = boogie;
23 Nuget = nuget;
24
25 # BINARY PACKAGES
26
27 NUnit3 = fetchNuGet {
28 pname = "NUnit";
29 version = "3.0.1";
30 sha256 = "1g3j3kvg9vrapb1vjgq65nvn1vg7bzm66w7yjnaip1iww1yn1b0p";
31 outputFiles = [ "lib/*" ];
32 };
33
34 NUnit2 = fetchNuGet {
35 pname = "NUnit";
36 version = "2.6.4";
37 sha256 = "1acwsm7p93b1hzfb83ia33145x0w6fvdsfjm9xflsisljxpdx35y";
38 outputFiles = [ "lib/*" ];
39 };
40
41 NUnit = NUnit2;
42
43 NUnitConsole = fetchNuGet {
44 pname = "NUnit.Console";
45 version = "3.0.1";
46 sha256 = "154bqwm2n95syv8nwd67qh8qsv0b0h5zap60sk64z3kd3a9ffi5p";
47 outputFiles = [ "tools/*" ];
48 };
49
50 MaxMindDb = fetchNuGet {
51 pname = "MaxMind.Db";
52 version = "1.1.0.0";
53 sha256 = "0lixl76f7k3ldiqzg94zh13gn82w5mm5dx72y97fcqvp8g6nj3ds";
54 outputFiles = [ "lib/*" ];
55 };
56
57 MaxMindGeoIP2 = fetchNuGet {
58 pname = "MaxMind.GeoIP2";
59 version = "2.3.1";
60 sha256 = "1s44dvjnmj1aimbrgkmpj6h5dn1w6acgqjch1axc76yz6hwknqgf";
61 outputFiles = [ "lib/*" ];
62 };
63
64 SharpZipLib = fetchNuGet {
65 pname = "SharpZipLib";
66 version = "1.3.3";
67 sha256 = "sha256-HWEQTKh9Ktwg/zIl079dAiH+ob2ShWFAqLgG6XgIMr4=";
68 outputFiles = [ "lib/*" ];
69 };
70
71 StyleCopMSBuild = fetchNuGet {
72 pname = "StyleCop.MSBuild";
73 version = "4.7.49.0";
74 sha256 = "0rpfyvcggm881ynvgr17kbx5hvj7ivlms0bmskmb2zyjlpddx036";
75 outputFiles = [ "tools/*" ];
76 meta.mainProgram = "stylecopsettingseditor";
77 };
78
79 StyleCopPlusMSBuild = fetchNuGet {
80 pname = "StyleCopPlus.MSBuild";
81 version = "4.7.49.5";
82 sha256 = "1hv4lfxw72aql8siyqc4n954vzdz8p6jx9f2wrgzz0jy1k98x2mr";
83 outputFiles = [ "tools/*" ];
84 };
85
86 RestSharp = fetchNuGet {
87 pname = "RestSharp";
88 version = "106.12.0";
89 sha256 = "sha256-NGzveByJvCRtHlI2C8d/mLs3akyMm77NER8TUG6HiD4=";
90 outputFiles = [ "lib/*" ];
91 };
92
93 SharpFont = fetchNuGet {
94 pname = "SharpFont";
95 version = "4.0.1";
96 sha256 = "1yd3cm4ww0hw2k3aymf792hp6skyg8qn491m2a3fhkzvsl8z7vs8";
97 outputFiles = [
98 "lib/*"
99 "config/*"
100 ];
101 };
102
103 SmartIrc4net = fetchNuGet {
104 pname = "SmartIrc4net";
105 version = "0.4.5.1";
106 sha256 = "1d531sj39fvwmj2wgplqfify301y3cwp7kwr9ai5hgrq81jmjn2b";
107 outputFiles = [ "lib/*" ];
108 };
109
110 FuzzyLogicLibrary = fetchNuGet {
111 pname = "FuzzyLogicLibrary";
112 version = "1.2.0";
113 sha256 = "0x518i8d3rw9n51xwawa4sywvqd722adj7kpcgcm63r66s950r5l";
114 outputFiles = [ "bin/*" ];
115 };
116
117 OpenNAT = fetchNuGet {
118 pname = "Open.NAT";
119 version = "2.1.0";
120 sha256 = "1jyd30fwycdwx5ck96zhp2xf20yz0sp7g3pjbqhmay4kd322mfwk";
121 outputFiles = [ "lib/*" ];
122 };
123
124 MonoNat = fetchNuGet {
125 pname = "Mono.Nat";
126 version = "1.2.24";
127 sha256 = "0vfkach11kkcd9rcqz3s38m70d5spyb21gl99iqnkljxj5555wjs";
128 outputFiles = [ "lib/*" ];
129 };
130
131 NUnitRunners = fetchNuGet {
132 pname = "NUnit.Runners";
133 version = "2.6.4";
134 sha256 = "11nmi7vikn9idz8qcad9z7f73arsh5rw18fc1sri9ywz77mpm1s4";
135 outputFiles = [ "tools/*" ];
136 preInstall = "mv -v tools/lib/* tools && rmdir -v tools/lib";
137 };
138
139 # SOURCE PACKAGES
140
141 MonoAddins = buildDotnetPackage rec {
142 pname = "Mono.Addins";
143 version = "1.2";
144
145 xBuildFiles = [
146 "Mono.Addins/Mono.Addins.csproj"
147 "Mono.Addins.Setup/Mono.Addins.Setup.csproj"
148 "Mono.Addins.Gui/Mono.Addins.Gui.csproj"
149 "Mono.Addins.CecilReflector/Mono.Addins.CecilReflector.csproj"
150 ];
151 outputFiles = [ "bin/*" ];
152
153 src = fetchFromGitHub {
154 owner = "mono";
155 repo = "mono-addins";
156 rev = "mono-addins-${version}";
157 sha256 = "1hnn0a2qsjcjprsxas424bzvhsdwy0yc2jj5xbp698c0m9kfk24y";
158 };
159
160 buildInputs = [ pkgs.gtk-sharp-2_0 ];
161
162 meta = {
163 description = "Generic framework for creating extensible applications";
164 homepage = "https://www.mono-project.com/Mono.Addins";
165 longDescription = ''
166 A generic framework for creating extensible applications,
167 and for creating libraries which extend those applications.
168 '';
169 license = lib.licenses.mit;
170 };
171 };
172
173 NewtonsoftJson = fetchNuGet {
174 pname = "Newtonsoft.Json";
175 version = "11.0.2";
176 sha256 = "07na27n4mlw77f3hg5jpayzxll7f4gyna6x7k9cybmxpbs6l77k7";
177 outputFiles = [ "*" ];
178 postInstall = "rm $target/env-vars"; # fetchNuGet already sets preInstall
179 };
180
181 Paket = fetchNuGet {
182 pname = "Paket";
183 version = "5.179.1";
184 sha256 = "11rzna03i145qj08hwrynya548fwk8xzxmg65swyaf19jd7gzg82";
185 outputFiles = [ "*" ];
186 postInstall = "rm $target/env-vars"; # fetchNuGet already sets preInstall
187 };
188
189 };
190in
191self