aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
AgeCommit message (Collapse)Author
2023-03-03Merge pull request #7946 from cole-h/restore-static-bin-distEelco Dolstra
flake: restore binary-dist artifact to Hydra static builds
2023-03-02flake: restore binary-dist artifact to Hydra static buildsCole Helbling
2023-03-02Fix 'make check' inside 'nix develop'Eelco Dolstra
2023-02-28flake.nix: Force the ./configure tests setting Robert Hensing
This always forces the setting, rather than relying on its default, and cleans up the code a bit. Co-authored-by: John Ericson <git@JohnEricson.me>
2023-02-24Add ./configure --disable-tests optionRobert Hensing
Building without tests is useful for bootstrapping with a smaller footprint or running the tests in a separate derivation. Otherwise, we do compile and run them. This isn't fine grained as to allow picking `check` but not `installcheck` or vice versa, but it's good enough for now. I've tried to use Nixpkgs' `checkInputs`, but those inputs weren't discovered properly by the configure script. We can emulate its behavior very well though.
2023-02-22Fix the static buildEelco Dolstra
It doesn't produce a "debug" output, so the build failed without an error message in Hydra (https://hydra.nixos.org/build/210121811).
2023-02-21Fix `isStatic` arguments to `commonDeps`John Ericson
Some dependencies supposed to be skipped in the cross build, along with not using the gold linker. But in https://github.com/NixOS/nix/pull/6538 this was accidentally not preserved. Also since https://github.com/NixOS/nix/pull/6538 we saw some new aarch64-linux static build failures. This is a first attempt to try to fix those failures. If this is not sufficient, there are other things we can try next.
2023-02-20Nix's own flake: Dedup and memoize moreJohn Ericson
- `nixpkgsFor` does all of native, static, cross, and the different stdenvs. - The main Nix derivation is no longer duplicated for static. - DRY nixpkgs.lib and lib.genAttrs calls.
2023-02-20Merge pull request #7433 from yorickvP/improv-onboardingThéophane Hufschmitt
Improve hacking.md and add clangd+bear to devshell
2023-02-13Improve hacking.mdYorick van Pelt
- Refer to current version in readme - Split into flakes and non-flakes section - Change order to move nix-build to the end, since people often start with it in the beginning. - Use proper "Note" syntax - Add notes about editor integration - Move information about target platforms and stdenvs into separate sections Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io> Co-authored-by: Alexander Bantyev <alexander.bantyev@tweag.io> Co-authored-by: Théophane Hufschmitt <theophane.hufschmitt@tweag.io>
2023-02-10flake.nix: add clangd and bearYorick van Pelt
2023-02-07Add a basic daemon authorization testRobert Hensing
2023-01-27Merge pull request #7648 from hercules-ci/move-nixos-testsThéophane Hufschmitt
Move nixos tests
2023-01-24Fix the coverage jobJohn Ericson
See https://hydra.nixos.org/build/206790960
2023-01-24Merge pull request #7679 from hercules-ci/re-add-boehmgc-patchRobert Hensing
Revert "fixup: remove boehmgc patch"
2023-01-24Actually complete the revertRobert Hensing
2023-01-23Try to fix #7669John Ericson
The issue *seems* to be the cross jobs, which are missing the `CXXFLAGS` needed to get rapidcheck. PR #6538 would be really nice to resurrect which will prevent the `configureFlags` from going out of sync between the regular build and the cross build again.
2023-01-23Add `rapidcheck` dependency for testingJohn Ericson
Property tests are great! Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2023-01-20Use the official, documented NixOS runTest interfaceRobert Hensing
2023-01-20tests: Move NixOS tests to tests/nixosRobert Hensing
This will allow contributors to find them more easily.
2023-01-18flake.nix: Add nixpkgs/lib/tests as regression testRobert Hensing
2023-01-10manual: Check linksRobert Hensing
mdbook-linkcheck is not consistent about its warning setting. It disables some warnings, but not the warnings about lack of fragment checking support; hence the extra filtering.
2022-12-23Merge pull request #7367 from lheckemann/nixpkgs-22.11Eelco Dolstra
Bump nixpkgs to 22.11
2022-12-13Build Nix with the GC disabled in hydraThéophane Hufschmitt
Make sure that it still compiles as it's easy to accidentally break one of the `#if` guarded clauses
2022-12-07flake.nix: Use nixpkgs.lib.fileContentsRobert Hensing
2022-12-07.version: Add newlineRobert Hensing
2022-11-30Merge remote-tracking branch 'origin/master' into nixpkgs-22.11Eelco Dolstra
2022-11-29bump nixpkgs to 22.11 betaLinus Heckemann
2022-11-27Add tests for auto-uid-allocation, uid-range and cgroupsEelco Dolstra
2022-09-26Merge pull request #7043 from edolstra/installer-testEelco Dolstra
Add an installer test
2022-09-24Merge pull request #7082 from rapenne-s/ccacheThéophane Hufschmitt
add ccacheStdenv
2022-09-23add ccacheStdenvSolène Rapenne
when using ccache, rebuild time has been measured 89% faster while not slowing the speed of cold builds
2022-09-14Add an installer testEelco Dolstra
This runs the installer in a QEMU VM. Unlike the old installer test that ran inside a declaratively built RedHat/Debian image, this uses an image from Vagrant.
2022-09-05Installer: Reset the timestamps in the tarballThéophane Hufschmitt
Otherwise it isn't reproducible. Fix https://github.com/NixOS/nix/issues/7001
2022-07-14curl: patch for netrc regression in NixDomen Kožar
2022-07-11Fix buildStatic.aarch64-linuxEelco Dolstra
Commit 925b97522497e9c0f7a385c904410e560796208f accidentally enabled use of the gold linker on aarch64-linux, which apparently doesn't work. https://hydra.nixos.org/build/183500621
2022-06-24Add reminder to remove nix-static testing hackEelco Dolstra
https://github.com/NixOS/nix/pull/6708#issuecomment-1165912951
2022-06-23Embed the sandbox shell into the statically linked 'nix' binaryEelco Dolstra
With this, Nix will write a copy of the sandbox shell to /bin/sh in the sandbox rather than bind-mounting it from the host filesystem. This makes /bin/sh work out of the box with nix-static, i.e. you no longer get /nix/store/qa36xhc5gpf42l3z1a8m1lysi40l9p7s-bootstrap-stage4-stdenv-linux/setup: ./configure: /bin/sh: bad interpreter: No such file or directory
2022-06-22Enable/fix tests in nix-staticEelco Dolstra
pkgsStatic is apparently considered a cross environment, so checkPhase and installCheckPhase are disabled even when we ask for them.
2022-06-08Merge pull request #6630 from edolstra/boost-dylibEelco Dolstra
Remove ${boost}/lib from the RPATH
2022-06-08Remove ${boost}/lib from the RPATHEelco Dolstra
2022-06-08Merge pull request #6624 from NixOS/new-flake-styleThéophane Hufschmitt
flake.nix: Convert to new naming convention
2022-06-07Convert to new flake styleEelco Dolstra
https://github.com/NixOS/nix/issues/5532
2022-06-07Fix 22.05 eval warningsEelco Dolstra
2022-06-07Disable cross builds on platforms other than x86_64-linuxEelco Dolstra
Needed because evaluation was broken on x86_64-darwin.
2022-05-31flake: update to 22.05Cole Helbling
The static build works now :)
2022-05-31Merge pull request #6537 from cole-h/update-flakeEelco Dolstra
flake: use github: reference to nixpkgs
2022-05-30Mark nix-perl as a Perl moduleEelco Dolstra
The call to perl.withPackages in nix-serve expects this.
2022-05-30Set meta.platformsEelco Dolstra
'nix-serve' in nixpkgs expects the nix package to set this.
2022-05-27Merge branch 'doc-redirects' of https://github.com/jtojnar/nixEelco Dolstra