Yorick van Pelt
e642bbc2a7
C API: move to src/lib*/c/
2024-03-28 10:46:39 +01:00
Yorick van Pelt
4702317506
libutil: add C bindings
2024-03-28 10:39:04 +01:00
John Ericson
77205b2042
Allow for ergnomically putting Unix-only files in subdirs by creating INLCUDE_$(pkg)
vars
...
Separate platform-specific files will allow avoiding a lot of CPP.
2024-03-27 12:01:59 -04:00
John Ericson
47b3508665
Use positive source filtering for the standalone functional tests job
...
Additionally this skipping of the building is reimplemented to be a bit
more robust and use the same idioms as the functionality for skipping
the tests. In particular, it will now work even if the source files
exist, so we can do this during development too.
2023-10-09 08:29:27 -04:00
Robert Hensing
fba7be80eb
Enable -Werror=switch-enum
...
switch statements must now match all enum values or disable the
warning.
Explicit is good. This has helped us find two bugs, after solving
another one by debugging.
From now on, adding to an enum will raise errors where they are
not explicitly handled, which is good for productivity, and helps
us decide the correct behavior in all usages.
Notably still excluded from this though are the cases where the
warning is disabled by local pragmas.
fromTOML.cc did not build despite a top-level pragma, so I've had
to resort to a makefile solution for that.
2023-04-03 18:45:20 +02:00
Eelco Dolstra
8ad2c9c4b9
Remove 'dist' target
...
We're not producing source tarballs anymore so this has been
bitrotting.
2020-12-03 16:17:58 +01:00
Eelco Dolstra
0856c0a0b4
mk/precompiled-headers.mk: Remove special handling for clang
2020-10-06 13:27:09 +02:00
Eelco Dolstra
2c692a3b14
Remove global -I flags
2020-03-30 14:39:33 +02:00
Eelco Dolstra
e0a0ae0467
Move fetchers from libstore to libfetchers
2020-03-30 14:04:53 +02:00
Eelco Dolstra
0a4e911cf4
Install headers in the correct location
2020-02-03 18:04:09 +01:00
Eelco Dolstra
bca0afb943
Shut up about deprecated functions
2019-12-10 13:44:49 +01:00
Eelco Dolstra
50d483a2c1
Fix precompiled-headers generation
...
It's now regenerated when util.hh changes, and is ordered after
config.h to fix a race.
2019-12-05 20:26:24 +01:00
Eelco Dolstra
895ed4cef0
Remove RPM spec file
...
Closes #3225 .
Closes #3226 .
2019-11-28 15:10:18 +01:00
Eelco Dolstra
f6a3dfe4e0
Merge all nix-* binaries into nix
...
These are all symlinks to 'nix' now, reducing the installed size by
about ~1.7 MiB.
2018-10-26 12:54:00 +02:00
Eelco Dolstra
ca14b14200
Use boost::format from the boost package
...
Note that this only requires headers from boost so it doesn't add a
runtime dependency.
Also, use Nixpkgs 18.03.
2018-03-14 19:24:04 +01:00
Eelco Dolstra
6d80870832
release.nix: Use fetchTarball and fetchGit
...
In particular, using fetchGit means we don't need hackery to clean the
source tree when building from an unclean tree.
2017-12-22 11:35:32 +01:00
Eelco Dolstra
7f2c324ed1
Simplify build by including nlohmann/json.hpp
2017-12-04 17:11:36 +01:00
Eelco Dolstra
4af2611bd1
Allow builders to create activities
...
Actually, currently they can only create download activities. Thus,
downloads by builtins.fetchurl show up in the progress bar.
2017-08-21 12:18:46 +02:00
Eelco Dolstra
f8a2e8a552
Shut up some warnings
2017-04-14 14:42:20 +02:00
Shea Levy
f7b7df8d1f
Add nix-perl package for the perl bindings
2017-02-07 15:56:32 -05:00
Eelco Dolstra
27dc76c1a5
Remove build-remote.pl.in
2017-02-07 18:49:17 +01:00
John Ericson
a7dd26961d
Don't depend on git when generating source tarball
2015-10-15 11:53:45 -07:00
Eelco Dolstra
4ba6bc184c
Shut up clang warnings
2015-09-18 01:22:35 +02:00
Eelco Dolstra
f90e9b65d6
Install serve-protocol.hh
2015-06-09 11:14:36 +02:00
Eelco Dolstra
f0610e28e8
Install config.h only once
2014-08-20 18:33:07 +02:00
Eelco Dolstra
45f9a91e18
make clean: Remove Makefile.config
2014-07-30 11:36:28 +02:00
Eelco Dolstra
bd91453bb1
Pass -pthread only for programs that need it
2014-07-23 19:48:18 +02:00
Eelco Dolstra
49fe9592a4
nix-daemon: Use a thread instead of SIGPOLL to catch client disconnects
...
The thread calls poll() to wait until a HUP (or other error event)
happens on the client connection. If so, it sends SIGINT to the main
thread, which is then cleaned up normally. This is much nicer than
messing around with SIGPOLL.
2014-07-23 19:21:00 +02:00
Eelco Dolstra
e384e7b387
Remove redundant code
2014-05-14 22:25:25 +02:00
Eelco Dolstra
f7e077ad27
Install missing Boost headers
...
http://hydra.nixos.org/build/9328376
2014-03-05 11:11:24 +01:00
Eelco Dolstra
7fab23e237
Install header files
2014-02-07 17:36:04 +01:00
Eelco Dolstra
143224f7cd
Add nix.spec to the distribution
2014-02-04 10:09:45 +01:00
Eelco Dolstra
6dca72006a
Only run "git ls-files" when doing "make check"
2014-02-01 16:30:24 +01:00
Eelco Dolstra
844d83352c
More "make dist" fixes
2014-02-01 15:18:48 +01:00
Eelco Dolstra
6ef32bddc1
Fix "make dist"
2014-02-01 14:38:12 +01:00