about summary refs log tree commit diff
path: root/pkgs/profpatsch/write-rust.nix
Commit message (Collapse)AuthorAgeFilesLines
* pkgs/profpatsch/write-rust: alwyas run tests by defaultProfpatsch2021-04-231-5/+16
| | | | | | testRustSimple wouldn’t work with all the rust functions, so let’s just use it internally and expose the tests via the conventional `doCheck` attribute instead.
* pkgs/profpatsch/write-rust: fix ln invocationsternenseemann2021-04-201-1/+1
| | | | | | | | The -T flag is GNU coreutils specific, for s6-ln and POSIX ln, the equivalent seems to be -L which mandates behavior like linkat(3) with the AT_SYMLINK_FOLLOW flag. cc @Profpatsch
* pkgs/profpatsch/write-rust: use s6-portable-utilsProfpatsch2021-03-261-4/+4
| | | | | | | | | | | | | | | We had a bunch of instances of https://github.com/NixOS/nix/issues/2176, where nix would exit with a “killed by signal 9” error. According to Eelco in that issue, this is perfectly normal behaviour of course, and appears if the last command in a loop closes `stdout` or `stdin`, then the builder will SIGKILL it immediately. This is of course also a perfectly fine error message for that case. It turns out that mainly GNU coreutils exhibit this behaviour … Let’s see if using a more sane tool suite fixes that.
* fix(profpatsch/write-rust): fail on rust test failuresternenseemann2021-03-251-1/+1
| | | | | | | | | | Port of <https://cl.tvl.fyi/c/depot/+/2657>. Original message: `forstdin` iterates over the tests in the test directory, and by default it does *not* fail if an inner loop returns an error, unless `-o okcodes` is given, a list of exit codes that indicate success. Now it fails if a loop returns ≠ 0.
* pkgs/profpatsch: vendor testRustSimple from tvlsternenseemann2021-02-141-2/+28
| | | | | | | testRustSimple builds and runs the tests of a buildRustCrate derivation automatically using drvSeqL, returning its non-test variant. Really looking forward to pkgs.tvl :)
* pkgs/profpatsch: writeRustSimple, wrapper around buildRustCrateProfpatsch2020-06-021-0/+44