···13# To not have to set the option in every repository it is needed in,
14# save the following script in your path with the name "git-bblame"
15# now you can run
16-# $ git blame $FILE
17# to use the .git-blame-ignore-revs file if it is present.
18#
19# #!/usr/bin/env bash
···13# To not have to set the option in every repository it is needed in,
14# save the following script in your path with the name "git-bblame"
15# now you can run
16+# $ git bblame $FILE
17# to use the .git-blame-ignore-revs file if it is present.
18#
19# #!/usr/bin/env bash
···238 </listitem>
239 <listitem>
240 <para>
00000000241 <link xlink:href="https://ergo.chat">ergochat</link>, a modern
242 IRC with IRCv3 features. Available as
243 <link xlink:href="options.html#opt-services.ergochat.enable">services.ergochat</link>.
···238 </listitem>
239 <listitem>
240 <para>
241+ <link xlink:href="https://github.com/fleaz/r53-ddns">r53-ddns</link>,
242+ a small tool to run your own DDNS service via AWS Route53.
243+ Available as
244+ <link xlink:href="options.html#opt-services.r53-ddns.enable">services.r53-ddns</link>.
245+ </para>
246+ </listitem>
247+ <listitem>
248+ <para>
249 <link xlink:href="https://ergo.chat">ergochat</link>, a modern
250 IRC with IRCv3 features. Available as
251 <link xlink:href="options.html#opt-services.ergochat.enable">services.ergochat</link>.
+2
nixos/doc/manual/release-notes/rl-2205.section.md
···7778- [snowflake-proxy](https://snowflake.torproject.org/), a system to defeat internet censorship. Available as [services.snowflake-proxy](options.html#opt-services.snowflake-proxy.enable).
790080- [ergochat](https://ergo.chat), a modern IRC with IRCv3 features. Available as [services.ergochat](options.html#opt-services.ergochat.enable).
8182- [Snipe-IT](https://snipeitapp.com), a free open source IT asset/license management system. Available as [services.snipe-it](options.html#opt-services.snipe-it.enable).
···7778- [snowflake-proxy](https://snowflake.torproject.org/), a system to defeat internet censorship. Available as [services.snowflake-proxy](options.html#opt-services.snowflake-proxy.enable).
7980+- [r53-ddns](https://github.com/fleaz/r53-ddns), a small tool to run your own DDNS service via AWS Route53. Available as [services.r53-ddns](options.html#opt-services.r53-ddns.enable).
81+82- [ergochat](https://ergo.chat), a modern IRC with IRCv3 features. Available as [services.ergochat](options.html#opt-services.ergochat.enable).
8384- [Snipe-IT](https://snipeitapp.com), a free open source IT asset/license management system. Available as [services.snipe-it](options.html#opt-services.snipe-it.enable).
···11 repo = "ASF-ui";
12 # updated by the update script
13 # this is always the commit that should be used with asf-ui from the latest asf version
14- rev = "156992e88d5c695375e9f69c29f2c68bec24d2b1";
15- sha256 = "0zqiaj0957rr4kzw8q8zkxvd88nqw5ssym81dsd3pa0ypr4vqb4w";
16 };
1718in
···11 repo = "ASF-ui";
12 # updated by the update script
13 # this is always the commit that should be used with asf-ui from the latest asf version
14+ rev = "bb59242af6f17a54449e6f87e9df397da1a19525";
15+ sha256 = "0d9x0fcjxghmjqnfxj22x2hnx3k6jfsayb2ws7ayn3azcczfsccp";
16 };
1718in
···120 license = licenses.asl20;
121 maintainers = with maintainers; [ andrew-d ];
122 platforms = [ "x86_64-linux" ];
123+ # The version we have right now does not compile with go 1.17
124+ # See https://github.com/NixOS/nixpkgs/pull/174003 if you want to upgrade gvisor
125+ broken = true;
126 };
127}
-282
pkgs/development/compilers/go/1.16.nix
···1-{ lib
2-, stdenv
3-, fetchurl
4-, tzdata
5-, iana-etc
6-, runCommand
7-, perl
8-, which
9-, pkg-config
10-, procps
11-, pcre
12-, cacert
13-, Security
14-, Foundation
15-, xcbuild
16-, mailcap
17-, runtimeShell
18-, buildPackages
19-, pkgsBuildTarget
20-, callPackage
21-}:
22-23-let
24- go_bootstrap = buildPackages.callPackage ./bootstrap.nix { };
25-26- goBootstrap = runCommand "go-bootstrap" { } ''
27- mkdir $out
28- cp -rf ${go_bootstrap}/* $out/
29- chmod -R u+w $out
30- find $out -name "*.c" -delete
31- cp -rf $out/bin/* $out/share/go/bin/
32- '';
33-34- goarch = platform: {
35- "i686" = "386";
36- "x86_64" = "amd64";
37- "aarch64" = "arm64";
38- "arm" = "arm";
39- "armv5tel" = "arm";
40- "armv6l" = "arm";
41- "armv7l" = "arm";
42- "mips" = "mips";
43- "mipsel" = "mipsle";
44- "riscv64" = "riscv64";
45- "s390x" = "s390x";
46- "powerpc64le" = "ppc64le";
47- "mips64el" = "mips64le";
48- }.${platform.parsed.cpu.name} or (throw "Unsupported system: ${platform.parsed.cpu.name}");
49-50- # We need a target compiler which is still runnable at build time,
51- # to handle the cross-building case where build != host == target
52- targetCC = pkgsBuildTarget.targetPackages.stdenv.cc;
53-in
54-55-stdenv.mkDerivation rec {
56- pname = "go";
57- version = "1.16.15";
58-59- src = fetchurl {
60- url = "https://dl.google.com/go/go${version}.src.tar.gz";
61- sha256 = "sha256-kKCMaJJ54184ZbpRCZjDOmMlXDYImz7CBskS/AVow9M=";
62- };
63-64- # perl is used for testing go vet
65- nativeBuildInputs = [ perl which pkg-config procps ];
66- buildInputs = [ cacert pcre ]
67- ++ lib.optionals stdenv.isLinux [ stdenv.cc.libc.out ]
68- ++ lib.optionals (stdenv.hostPlatform.libc == "glibc") [ stdenv.cc.libc.static ];
69-70- propagatedBuildInputs = lib.optionals stdenv.isDarwin [ xcbuild ];
71-72- depsTargetTargetPropagated = lib.optionals stdenv.isDarwin [ Security Foundation ];
73-74- hardeningDisable = [ "all" ];
75-76- prePatch = ''
77- patchShebangs ./ # replace /bin/bash
78-79- # This source produces shell script at run time,
80- # and thus it is not corrected by patchShebangs.
81- substituteInPlace misc/cgo/testcarchive/carchive_test.go \
82- --replace '#!/usr/bin/env bash' '#!${runtimeShell}'
83-84- # Patch the mimetype database location which is missing on NixOS.
85- # but also allow static binaries built with NixOS to run outside nix
86- sed -i 's,\"/etc/mime.types,"${mailcap}/etc/mime.types\"\,\n\t&,' src/mime/type_unix.go
87-88- # Disabling the 'os/http/net' tests (they want files not available in
89- # chroot builds)
90- rm src/net/{listen,parse}_test.go
91- rm src/syscall/exec_linux_test.go
92-93- # !!! substituteInPlace does not seems to be effective.
94- # The os test wants to read files in an existing path. Just don't let it be /usr/bin.
95- sed -i 's,/usr/bin,'"`pwd`", src/os/os_test.go
96- sed -i 's,/bin/pwd,'"`type -P pwd`", src/os/os_test.go
97- # Fails on aarch64
98- sed -i '/TestFallocate/aif true \{ return\; \}' src/cmd/link/internal/ld/fallocate_test.go
99- # Skip this test since ssl patches mess it up.
100- sed -i '/TestLoadSystemCertsLoadColonSeparatedDirs/aif true \{ return\; \}' src/crypto/x509/root_unix_test.go
101- # Disable another PIE test which breaks.
102- sed -i '/TestTrivialPIE/aif true \{ return\; \}' misc/cgo/testshared/shared_test.go
103- # Disable the BuildModePie test
104- sed -i '/TestBuildmodePIE/aif true \{ return\; \}' src/cmd/go/go_test.go
105- # Disable the unix socket test
106- sed -i '/TestShutdownUnix/aif true \{ return\; \}' src/net/net_test.go
107- # Disable the hostname test
108- sed -i '/TestHostname/aif true \{ return\; \}' src/os/os_test.go
109- # ParseInLocation fails the test
110- sed -i '/TestParseInSydney/aif true \{ return\; \}' src/time/format_test.go
111- # Remove the api check as it never worked
112- sed -i '/src\/cmd\/api\/run.go/ireturn nil' src/cmd/dist/test.go
113- # Remove the coverage test as we have removed this utility
114- sed -i '/TestCoverageWithCgo/aif true \{ return\; \}' src/cmd/go/go_test.go
115- # Remove the timezone naming test
116- sed -i '/TestLoadFixed/aif true \{ return\; \}' src/time/time_test.go
117- # Remove disable setgid test
118- sed -i '/TestRespectSetgidDir/aif true \{ return\; \}' src/cmd/go/internal/work/build_test.go
119- # Remove cert tests that conflict with NixOS's cert resolution
120- sed -i '/TestEnvVars/aif true \{ return\; \}' src/crypto/x509/root_unix_test.go
121- # TestWritevError hangs sometimes
122- sed -i '/TestWritevError/aif true \{ return\; \}' src/net/writev_test.go
123- # TestVariousDeadlines fails sometimes
124- sed -i '/TestVariousDeadlines/aif true \{ return\; \}' src/net/timeout_test.go
125-126- sed -i 's,/etc/protocols,${iana-etc}/etc/protocols,' src/net/lookup_unix.go
127- sed -i 's,/etc/services,${iana-etc}/etc/services,' src/net/port_unix.go
128-129- # Disable cgo lookup tests not works, they depend on resolver
130- rm src/net/cgo_unix_test.go
131-132- # prepend the nix path to the zoneinfo files but also leave the original value for static binaries
133- # that run outside a nix server
134- sed -i 's,\"/usr/share/zoneinfo/,"${tzdata}/share/zoneinfo/\"\,\n\t&,' src/time/zoneinfo_unix.go
135-136- '' + lib.optionalString stdenv.isAarch32 ''
137- echo '#!${runtimeShell}' > misc/cgo/testplugin/test.bash
138- '' + lib.optionalString stdenv.isDarwin ''
139- substituteInPlace src/race.bash --replace \
140- "sysctl machdep.cpu.extfeatures | grep -qv EM64T" true
141- sed -i 's,strings.Contains(.*sysctl.*,true {,' src/cmd/dist/util.go
142- sed -i 's,"/etc","'"$TMPDIR"'",' src/os/os_test.go
143- sed -i 's,/_go_os_test,'"$TMPDIR"'/_go_os_test,' src/os/path_test.go
144-145- sed -i '/TestChdirAndGetwd/aif true \{ return\; \}' src/os/os_test.go
146- sed -i '/TestCredentialNoSetGroups/aif true \{ return\; \}' src/os/exec/exec_posix_test.go
147- sed -i '/TestRead0/aif true \{ return\; \}' src/os/os_test.go
148- sed -i '/TestSystemRoots/aif true \{ return\; \}' src/crypto/x509/root_darwin_test.go
149-150- sed -i '/TestGoInstallRebuildsStalePackagesInOtherGOPATH/aif true \{ return\; \}' src/cmd/go/go_test.go
151- sed -i '/TestBuildDashIInstallsDependencies/aif true \{ return\; \}' src/cmd/go/go_test.go
152-153- sed -i '/TestDisasmExtld/aif true \{ return\; \}' src/cmd/objdump/objdump_test.go
154-155- sed -i 's/unrecognized/unknown/' src/cmd/link/internal/ld/lib.go
156-157- # TestCurrent fails because Current is not implemented on Darwin
158- sed -i 's/TestCurrent/testCurrent/g' src/os/user/user_test.go
159- sed -i 's/TestLookup/testLookup/g' src/os/user/user_test.go
160-161- touch $TMPDIR/group $TMPDIR/hosts $TMPDIR/passwd
162- '';
163-164- patches = [
165- ./remove-tools-1.11.patch
166- ./ssl-cert-file-1.16.patch
167- ./remove-test-pie-1.15.patch
168- ./creds-test.patch
169- ./go-1.9-skip-flaky-19608.patch
170- ./go-1.9-skip-flaky-20072.patch
171- ./skip-chown-tests-1.16.patch
172- ./skip-external-network-tests-1.16.patch
173- ./skip-nohup-tests.patch
174- ./skip-cgo-tests-1.15.patch
175- ./go_no_vendor_checks-1.16.patch
176- ] ++ [
177- # breaks under load: https://github.com/golang/go/issues/25628
178- (if stdenv.isAarch32
179- then ./skip-test-extra-files-on-aarch32-1.14.patch
180- else ./skip-test-extra-files-on-386-1.14.patch)
181- ];
182-183- postPatch = ''
184- find . -name '*.orig' -exec rm {} ';'
185- '';
186-187- GOOS = stdenv.targetPlatform.parsed.kernel.name;
188- GOARCH = goarch stdenv.targetPlatform;
189- # GOHOSTOS/GOHOSTARCH must match the building system, not the host system.
190- # Go will nevertheless build a for host system that we will copy over in
191- # the install phase.
192- GOHOSTOS = stdenv.buildPlatform.parsed.kernel.name;
193- GOHOSTARCH = goarch stdenv.buildPlatform;
194-195- # {CC,CXX}_FOR_TARGET must be only set for cross compilation case as go expect those
196- # to be different from CC/CXX
197- CC_FOR_TARGET =
198- if (stdenv.buildPlatform != stdenv.targetPlatform) then
199- "${targetCC}/bin/${targetCC.targetPrefix}cc"
200- else
201- null;
202- CXX_FOR_TARGET =
203- if (stdenv.buildPlatform != stdenv.targetPlatform) then
204- "${targetCC}/bin/${targetCC.targetPrefix}c++"
205- else
206- null;
207-208- GOARM = toString (lib.intersectLists [ (stdenv.hostPlatform.parsed.cpu.version or "") ] [ "5" "6" "7" ]);
209- GO386 = "softfloat"; # from Arch: don't assume sse2 on i686
210- CGO_ENABLED = 1;
211- # Hopefully avoids test timeouts on Hydra
212- GO_TEST_TIMEOUT_SCALE = 3;
213-214- # Indicate that we are running on build infrastructure
215- # Some tests assume things like home directories and users exists
216- GO_BUILDER_NAME = "nix";
217-218- GOROOT_BOOTSTRAP = "${goBootstrap}/share/go";
219-220- postConfigure = ''
221- export GOCACHE=$TMPDIR/go-cache
222- # this is compiled into the binary
223- export GOROOT_FINAL=$out/share/go
224-225- export PATH=$(pwd)/bin:$PATH
226-227- ${lib.optionalString (stdenv.buildPlatform != stdenv.targetPlatform) ''
228- # Independent from host/target, CC should produce code for the building system.
229- # We only set it when cross-compiling.
230- export CC=${buildPackages.stdenv.cc}/bin/cc
231- ''}
232- ulimit -a
233- '';
234-235- postBuild = ''
236- (cd src && ./make.bash)
237- '';
238-239- doCheck = stdenv.hostPlatform == stdenv.targetPlatform && !stdenv.isDarwin;
240-241- checkPhase = ''
242- runHook preCheck
243- (cd src && HOME=$TMPDIR GOCACHE=$TMPDIR/go-cache ./run.bash --no-rebuild)
244- runHook postCheck
245- '';
246-247- preInstall = ''
248- rm -r pkg/obj
249- # Contains the wrong perl shebang when cross compiling,
250- # since it is not used for anything we can deleted as well.
251- rm src/regexp/syntax/make_perl_groups.pl
252- '' + (if (stdenv.buildPlatform != stdenv.hostPlatform) then ''
253- mv bin/*_*/* bin
254- rmdir bin/*_*
255- ${lib.optionalString (!(GOHOSTARCH == GOARCH && GOOS == GOHOSTOS)) ''
256- rm -rf pkg/${GOHOSTOS}_${GOHOSTARCH} pkg/tool/${GOHOSTOS}_${GOHOSTARCH}
257- ''}
258- '' else if (stdenv.hostPlatform != stdenv.targetPlatform) then ''
259- rm -rf bin/*_*
260- ${lib.optionalString (!(GOHOSTARCH == GOARCH && GOOS == GOHOSTOS)) ''
261- rm -rf pkg/${GOOS}_${GOARCH} pkg/tool/${GOOS}_${GOARCH}
262- ''}
263- '' else "");
264-265- installPhase = ''
266- runHook preInstall
267- mkdir -p $GOROOT_FINAL
268- cp -a bin pkg src lib misc api doc $GOROOT_FINAL
269- ln -s $GOROOT_FINAL/bin $out/bin
270- runHook postInstall
271- '';
272-273- disallowedReferences = [ goBootstrap ];
274-275- meta = with lib; {
276- homepage = "https://go.dev/";
277- description = "The Go Programming language";
278- license = licenses.bsd3;
279- maintainers = teams.golang.members;
280- platforms = platforms.linux ++ platforms.darwin;
281- };
282-}
···39 meta = with lib; {
40 description = "An API for interacting with the parts of fonts during the font development process.";
41 homepage = "https://github.com/robotools/fontParts";
42- changelog = "https://github.com/robotools/fontParts/releases/tag/v${version}";
43 license = licenses.mit;
44 maintainers = [ maintainers.sternenseemann ];
45 };
···39 meta = with lib; {
40 description = "An API for interacting with the parts of fonts during the font development process.";
41 homepage = "https://github.com/robotools/fontParts";
42+ changelog = "https://github.com/robotools/fontParts/releases/tag/${version}";
43 license = licenses.mit;
44 maintainers = [ maintainers.sternenseemann ];
45 };
···30 description = "A high-performance, POSIX-ish Amazon S3 file system written in Go.";
31 license = [ lib.licenses.mit ];
32 maintainers = [ lib.maintainers.adisbladis ];
33- broken = stdenv.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
034 };
3536}
···30 description = "A high-performance, POSIX-ish Amazon S3 file system written in Go.";
31 license = [ lib.licenses.mit ];
32 maintainers = [ lib.maintainers.adisbladis ];
33+ # does not build with go 1.17
34+ broken = true;
35 };
3637}
···23buildGoModule rec {
4 pname = "obfs4";
5- version = "0.0.11";
67 src = fetchgit {
8 url = "https://git.torproject.org/pluggable-transports/obfs4.git";
9- rev = "refs/tags/${pname}proxy-${version}";
10- sha256 = "sha256-VjJ/Pc1YjNB2iLnN/5CxuaxolcaR1IMWgoESMzOXU/g=";
11 };
1213- vendorSha256 = "sha256-xGCK8biTYcrmKbsl6ZyCjpRrVP9x5xGrC3VcMsR7ETo=";
1415 meta = with lib; {
16 description = "A pluggable transport proxy";
···23buildGoModule rec {
4 pname = "obfs4";
5+ version = "0.0.12";
67 src = fetchgit {
8 url = "https://git.torproject.org/pluggable-transports/obfs4.git";
9+ rev = "a564bc3840bc788605e1a8155f4b95ce0d70c6db"; # not tagged
10+ sha256 = "0hqk540q94sh4wvm31jjcvpdklhf8r35in4yii7xnfn58a7amfkc";
11 };
1213+ vendorSha256 = "0yjanv5piygffpdfysviijl7cql2k0r05bsxnlj4hbamsriz9xqy";
1415 meta = with lib; {
16 description = "A pluggable transport proxy";
+1
pkgs/top-level/aliases.nix
···905 nmap-graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Added 2022-04-26
906 nmap_graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Modified 2022-04-26
907 nologin = throw "'nologin' has been renamed to/replaced by 'shadow'"; # Converted to throw 2022-02-22
0908 nordic-polar = throw "nordic-polar was removed on 2021-05-27, now integrated in nordic"; # Added 2021-05-27
909 noto-fonts-cjk = noto-fonts-cjk-sans; # Added 2021-12-16
910 nottetris2 = throw "nottetris2 was removed because it is unmaintained by upstream and broken"; # Added 2022-01-15
···905 nmap-graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Added 2022-04-26
906 nmap_graphical = throw "nmap graphical support has been removed due to its python2 dependency"; # Modified 2022-04-26
907 nologin = throw "'nologin' has been renamed to/replaced by 'shadow'"; # Converted to throw 2022-02-22
908+ nomad_1_1 = throw "nomad_1_1 has been removed because it's outdated. Use a a newer version instead"; # Added 2022-05-22
909 nordic-polar = throw "nordic-polar was removed on 2021-05-27, now integrated in nordic"; # Added 2021-05-27
910 noto-fonts-cjk = noto-fonts-cjk-sans; # Added 2021-12-16
911 nottetris2 = throw "nottetris2 was removed because it is unmaintained by upstream and broken"; # Added 2022-01-15