Commit graph

156 commits

Author SHA1 Message Date
Jörg Thalheim
aafd5a63ea buildGoPackage: disable go 1.10 cache
This disables annoying error messages that the go cache in /homeless-shelter cannot be created.
2018-02-24 01:57:16 +00:00
Yegor Timoshenko
40702af936
buildGoPackage: fill in meta.homepage 2017-12-20 01:07:14 +00:00
Orivej Desh
0fddfcdd4d
Merge pull request #30350 from alicebob/absdir
go: use absolute dir in getGoDirs()
2017-11-11 01:17:23 +00:00
Kamil Chmielewski
d05b21d7c0 goDeps: support fetchFromGiHub to fetch Go libs
https://github.com/NixOS/nixpkgs/pull/16017#issuecomment-246252087
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245297782
2017-11-01 01:28:57 +01:00
Harmen
6cae9e7127 go: use absolute dir in getGoDirs() 2017-10-12 15:46:08 +02:00
Orivej Desh
07d2a5b412 go: update nonfatal build error list 2017-09-28 10:28:20 +00:00
Joachim Schiele
f30dd71a38 go-modules/generic: add missing PATHs to GOPATH when using nix-shell (#26176) 2017-06-01 20:40:21 +02:00
Jörg Thalheim
2a42b45105 Merge pull request #25103 from Hodapp87/google_cloud_print
cloud-print-connector: init at unstable-2017-01-19
2017-05-20 18:23:12 +01:00
Chris Hodapp
cc4f861f82 cloud-print-connector: init at unstable-2017-01-19
This adds a fairly basic build for just the binaries for the Google
Cloud Print CUPS connector (gcp-cups-connector), and gcp-connector-util
to set it up in the first place. In the future I would like to
streamline the configuration more and make gcp-cups-connector a
proper NixOS service - as right now it must be run by hand.
2017-04-30 08:54:54 -04:00
snyh
12f52d234e buildGoPackage: fix preFixup failing
The preFixup is always failed if the target package hasn't any
binary output.
2017-04-16 09:19:58 +08:00
Joachim Fasting
4a12a681ef
go builder: use removeReferencesTo 2017-03-29 00:35:01 +02:00
Shea Levy
d6c3e74425 buildGoModule: share the buildFlagsArray with the parallel subprocesses 2017-03-15 11:00:55 -04:00
Vladimír Čunát
e065861a4f
buildGoPackage: reduce the default meta.platforms
platforms.all makes no sense as go.meta.platforms is smaller.  Discussion:
https://github.com/NixOS/nixpkgs/pull/20923#issuecomment-266763319
2016-12-14 10:26:20 +01:00
zimbatm
cbdc94f2b7 buildGoPackage: remove go version from name (#21111)
As a user installing the program it's not interesting what go version it
was compiled against. Not more interesting than any other potential
dependencies. It also makes it harder to install or update the package.
2016-12-13 11:35:15 +00:00
Franz Pletz
2d934fdffb
buildGoPackage: introduce extraSrcPaths option
This option adds support for including sources from existing gopaths into
the gopath of the package to build.
2016-10-29 05:18:16 +02:00
Kamil Chmielewski
914e0e594c buildGoPackage: deps.json -> deps.nix in NIXON
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541

* update docs to describe `deps.nix`
* include goDeps in nix-shell GOPATH
* NixOS 16.09 rel notes about replacing goPackages
2016-09-16 00:04:55 +01:00
Tuomas Tynkkynen
9b63aff395 go: Split output order to match new convention 2016-08-31 13:55:40 +03:00
Kamil Chmielewski
da3ddd48e4 buildGoPackage: remove Go deps file libs.json
After #16017 there were a lot
of comments saying that `nix` would be better than `JSON`
for Go packages dependency sets.
As said in https://github.com/NixOS/nixpkgs/pull/16017#issuecomment-229624046

    > Because of the content-addressable store, if two programs have the
    > same dependency it will already result in the same derivation in
    > the
    > store. Git also has compression in the pack files so it won't make
    > much difference to duplicate the dependencies on disk. And finally
    > most users will just use the binary builds so it won't make any
    > differences to them.

This PR removes `libs.json` file and puts all package dependencies in
theirs `deps.json`.
2016-08-11 23:07:09 +02:00
schneefux
4463f9f3d4 hugo: init at 0.16
Closes #16299.
2016-07-19 11:04:37 +02:00
schneefux
4c17bed84c minify: init at v2.0.0 2016-07-10 12:06:01 +02:00
Carl Sverre
a12ec263fa sift: init at 0.8.0
sift is a fast and powerful alternative to grep.

https://sift-tool.org
2016-06-25 14:10:34 -07:00
Rahul Gopinath
293d23abb4 elvish: init at 0.1
A novel unix shell written in go language.
2016-06-21 00:04:54 -07:00
Aristid Breitkreuz
20a8349d62 Revert "Merge pull request #16172 from zimbatm/influxdb-0.13.0"
This reverts commit ed4869452d, reversing
changes made to 175e20ca5c.
2016-06-18 22:24:31 +02:00
zimbatm
08770cd242 influxdb: merge deps with the common go-modules 2016-06-12 15:08:44 +01:00
Kamil Chmielewski
76b331ae59 go2nix: 20160307 -> 0.1.0 2016-06-10 12:04:35 +02:00
zimbatm
f870d6aeb6 goBuildPackage: export go
This is useful to make sure to use the same version of go in further
derivations.
2016-06-09 16:11:17 +02:00
Kamil Chmielewski
7eb671ebcd no more goPackages 2016-06-09 13:08:00 +02:00
Kamil Chmielewski
6f51fdd81c drive: extracted from goPackges 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
fc88548b5d go2nix: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
5d3f8fec7c prometheus-statsd-bridge: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
5fec17a3e2 prometheus-pushgateway: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
28b6e9863c prometheus-node-exporter: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
0f13eab7c8 prometheus-nginx-exporter: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
f44b557476 prometheus-mysqld-exporter: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
485ad053e0 prometheus-mesos-exporter: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
a3cf92fdba prometheus-collectd-exporter: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
fc9bc9eba5 goDeps: support for mercurial repos 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
4bf5a93f2d prom2json: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
03feac7937 pond: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
4ce39be8ea caddy: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
06327d22d6 syncthing012: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
abcec97b1e confd: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
f473582a75 hologram: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
8bfff0f5a6 i3cat: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
3cf803fca7 golant: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
4ddfe1fc40 serfdom: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
6b41b6b908 oauth2_proxy: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
2bee32508c nsq: extracted from goPackages 2016-06-09 11:22:02 +02:00
Kamil Chmielewski
20a457faf7 gotty: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
26d231c536 mesos-dns: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
6dc8237385 gox: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
c7bf8afbfc oh: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
bce93755b9 textql: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
17770101b5 wego: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
d010d39e15 skydns: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
e44d38125c s3gof3r: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
93b9ebfde8 ngrok: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
a1f3808e2f lxd: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
d765026f99 go-upower-notify: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
e2e3d8802f go-sct: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
ce81a8a65d go-mtpfs: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
387246080b mongodb-tools: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
89a256e463 interlock: extracted from goPackages 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
81f3092e11 Reusing go libs in deis build 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
bfa32800c3 First programs extracted from go-packages: deis and gawp 2016-06-09 11:21:30 +02:00
Kamil Chmielewski
bf9f60fe74 buildGoPackage: we don't need to build vendored packages 2016-04-07 17:45:20 +02:00
Charles Strahan
d53d5048d8 goPackages: add ide-like packages
This adds the following packages:

 * errcheck
 * gotool
 * gometalinter
 * motion
 * shlex
2016-03-18 03:14:44 -04:00
Valérian Galliat
37d1dcd12d buildGoPackage: do not remove Go references if allowGoReferences is true
allowGoReference was only checked for disallowedReferences definition,
but the fixup of all output binaries removing references to the compiler
did not take this setting into account.
2016-02-28 22:42:58 -05:00
Lluís Batlle i Rossell
082f2e6938 go builder: respect enableParallelBuilding
It was parallelizing for $NIX_BUILD_CORES regardless of
enableParallelBuilding.
2016-01-21 17:11:28 +01:00
Emery Hemingway
2b6dcdfcd0 Rename 'emery' maintainer handle to 'ehmry', fixes #11493
Communication happens on Github so names should be consistent.
2015-12-05 23:06:20 +01:00
Luca Bruno
b080efe4dc goPackages.tools: add setup-hook for setting GOTOOLDIR 2015-10-28 11:01:26 +01:00
William A. Kennington III
043839368e goPackages: Exclude commonly useless go packages from being built 2015-08-29 19:10:24 -07:00
William A. Kennington III
26f9ea6dd5 goPackages: Fix tools 2015-08-29 13:25:00 -07:00
William A. Kennington III
83cf8b0cf8 goPackages: Split into multiple derivations
This should reduce the closure size for end users who only need go
binaries as well as reduce the size of closures hydra builders consume.
2015-08-29 12:58:03 -07:00
William A. Kennington III
3afc3494bb goPackages: Use parallel instead of forking in bash 2015-08-29 11:51:26 -07:00
William A. Kennington III
d0880a27dd go-modules: Fix the application of reference removal on packages like mongo-tools 2015-08-27 01:02:20 -07:00
William A. Kennington III
c2ae91a413 buildGoPackage: Fix parallel test pid computation 2015-08-26 11:17:56 -07:00
Luca Bruno
08a6b7aa46 Revert "goPackages: disable parallel builds"
This reverts commit 75ed15e174.

Turns out it was just a missing &

cc @wkennington
2015-08-26 12:13:57 +02:00
Luca Bruno
75ed15e174 goPackages: disable parallel builds
It breaks cascadia tests. If a process terminates before wait,
the PID is non-existant and wait fails.
Using & and wait in bash is just broken and shouldn't be used.
We shall probably use GNU parallel for this job.

cc @wkennington
2015-08-26 12:11:27 +02:00
William A. Kennington III
bf0da55a8c gotools: Fix build and update to 2015-08-19 2015-08-19 13:54:54 -07:00
William A. Kennington III
c1338b3b06 buildGoPackage: Remove references to the go compiler to reduce closure size for binaries 2015-08-05 16:23:03 -07:00
William A. Kennington III
2856d4701e buildGoPackage: Support nativeBuildInputs 2015-08-05 16:22:36 -07:00
Anton Fedotov
f0269dd8b0 go-modules: This patch fixes an error with copying sources during installPhase if src of go module conatins file with spaces 2015-08-02 07:09:34 +03:00
William A. Kennington III
a4707aed55 go: Run builds in parallel 2015-07-29 18:16:56 -07:00
William A. Kennington III
c6bb486641 go: govers is a native input 2015-07-29 18:16:35 -07:00
William A. Kennington III
dabd9ec29c goPackages: Build on hydra 2015-05-22 15:58:51 -07:00
William A. Kennington III
f247481b5d buildGoPackage: Only install files from the goPackagePath 2015-05-20 02:44:09 -07:00
William A. Kennington III
8cbb97e6f3 buildGoPackage: Don't include private directories in the search 2015-05-19 20:14:03 -07:00
William A. Kennington III
414b3f2909 consul: Move into the go-packages framework 2015-05-18 19:45:19 -07:00
William A. Kennington III
1dbd67ee82 buildGoPackage: Don't print blank lines 2015-05-18 19:45:19 -07:00
William A. Kennington III
c2a85e04e8 buildGoPackage: Take into account propagatedBuildInputs during rename 2015-05-18 19:45:18 -07:00
William A. Kennington III
e89f90cd33 buildGoPackage: Only create if needed 2015-05-18 10:13:33 -07:00
William A. Kennington III
2f897aad70 buildGoPackage: Allow excluding of specific modules 2015-05-18 10:13:33 -07:00
Luca Bruno
1a3de46417 go: also remove disabled from the derivation 2015-05-18 12:47:24 +02:00
Luca Bruno
a43bd6bbcd go: add disabled flag for packages 2015-05-18 12:46:22 +02:00
Luca Bruno
58b865cfc6 go: remove renameImports and use goPackageAliases 2015-05-15 11:16:59 +02:00
William A. Kennington III
0ff12d88ea buildGoPackage: Skip directories which don't have buildable go packages 2015-05-14 17:58:30 -07:00
William A. Kennington III
1a045673f6 go-modules: Cleanup submodule detection
Also, only build the sources that matter for distribution
2015-05-14 17:58:30 -07:00
William A. Kennington III
fecf412767 buildGoPackage: Fix spacing 2015-05-14 17:58:30 -07:00
William A. Kennington III
3a5e10e37f buildGoPackage: Support adding extra sources 2015-05-14 17:58:30 -07:00