Janne Heß
0329256fd8
nixos-functions: Set system.stateVersion
2022-05-05 12:51:39 +02:00
Frederik Rietdijk
1d63f89caa
cudaPackages: overhaul of how we package cuda packages
...
There are many different versions of the `cudatoolkit` and related
cuda packages, and it can be tricky to ensure they remain compatible.
- `cudaPackages` is now a package set with `cudatoolkit`, `cudnn`, `cutensor`, `nccl`, as well as `cudatoolkit` split into smaller packages ("redist");
- expressions should now use `cudaPackages` as parameter instead of the individual cuda packages;
- `makeScope` is now used, so it is possible to use `.overrideScope'` to set e.g. a different `cudnn` version;
- `release-cuda.nix` is introduced to easily evaluate cuda packages using hydra.
2022-04-09 08:50:22 +02:00
github-actions[bot]
27e49cc5a4
Merge master into staging-next
2022-04-01 18:01:22 +00:00
Robert Hensing
6febb906a8
tests: Add pkgs-lib
...
Makes the following work
ofborg build tests.pkgs-lib
2022-04-01 15:19:45 +02:00
github-actions[bot]
be4f006d3c
Merge master into staging-next
2022-03-31 18:01:13 +00:00
Robert Hensing
e2461d62b6
pkgs.tests.nixos-functions: machine -> nodes.machine
2022-03-28 14:11:58 +02:00
github-actions[bot]
c6dd9fd65d
Merge master into staging-next
2022-03-25 18:01:14 +00:00
Silvan Mosberger
99d9d45630
Merge pull request #164651 from Infinisil/remove-optionSet
...
lib/modules: Finally remove deprecated types.optionSet
2022-03-25 17:41:57 +01:00
Vladimír Čunát
0a8b4eddd2
Merge branch 'master' into staging-next
2022-03-25 10:16:56 +01:00
Robert Hensing
6c469679f6
Merge remote-tracking branch 'upstream/master' into tests-restrict-arguments
2022-03-21 23:17:17 +01:00
Robert Hensing
b2d3baa3cf
tests.nixos-functions.nixosTest-test: Test callPackage-like behavior
2022-03-21 23:14:10 +01:00
Vladimír Čunát
a519740b4c
Merge branch 'staging-next' into staging
2022-03-21 11:57:43 +01:00
Robert Hensing
9bc841fec1
Merge pull request #164305 from hercules-ci/haskellPackages-shellFor-extraDependencies
...
haskellPackages.shellFor: Add extraDependencies
2022-03-20 19:18:44 +01:00
Silvan Mosberger
7b32b8b66f
Remove ancient mkOption tests
...
These are completely non-functional by now
2022-03-18 21:23:54 +01:00
Robert Hensing
2e87d165f7
haskellPackages.shellFor: Add extraDependencies
...
An example use case is when you have Haskell scripts that use
libraries that don't occur in your packages' dependencies.
2022-03-15 20:38:22 +01:00
K900
7e3c503257
build-support/writeTextFile: add test for weird file names
2022-03-10 13:30:46 +03:00
talyz
183147a037
makeWrapper: Don't glob in prefix/suffix
...
Disable file globbing in --prefix/--suffix, since bash will otherwise
try to find filenames matching the the value to be prefixed/suffixed
if it contains characters considered wildcards, such as `?` and
`*`. We want the value as is, except we also want to split it on on
the separator; hence we can't quote it.
2022-02-12 11:03:32 +01:00
talyz
be2aa01de7
tests: Add test for makeWrapper
...
Co-authored-by: Janne Heß <janne@hess.ooo>
2022-02-02 20:08:26 +01:00
Sandro
982fdde775
neovim.tests: remove alias
2022-01-20 02:58:47 +01:00
Robert Hensing
d75b85c5dc
Merge pull request #147690 from pasqui23/hosts
...
concatTextFile: init
2022-01-08 20:40:31 +01:00
Pasquale
5187d2cd8f
concatText: test now works
2021-12-30 13:12:34 +01:00
Robert Hensing
f6ff6c4ff4
Merge pull request #151411 from hercules-ci/pkgs-tests-fetch
...
pkgs.tests: Add fetcher tests so ofborg can run them
2021-12-20 18:33:50 +01:00
Robert Hensing
7195f7d5b9
pkgs.tests: Add fetcher tests so ofborg can run them
2021-12-20 13:13:07 +01:00
Tobias Bergkvist
ebf46e5764
makeBinaryWrapper: Fix issues on aarch64-darwin/macOS 12 (Monterey)
...
Sanitizers don't seem to be present on aarch64-darwin/macOS 12 (Monterey), so they are removed from the aarch64-darwin tests.
Switching from nativeBuildInputs to buildInputs and adding cc to the deps list caused some strange error messages to go away.
2021-12-16 21:29:21 +01:00
Tobias Bergkvist
228d451e03
makeBinaryWrapper: Fix chdir golden test for darwin
...
On macOS, /tmp is a symlink to /private/tmp. When performing cd /tmp, and checking cwd - it won't match since it follows the symlink.
This caused test breakage on macOS but not Linux. Instead, use a folder which is not a symlink, and consistent across Linux and macOS.
2021-12-16 21:12:59 +01:00
Tobias Bergkvist
f7b5083cb6
makeBinaryWrapper: Make tests discoverable to OfBorg
...
Move makeBinaryWrapper tests to pkgs.makeBinaryWrapper.passthru.tests, since OfBorg doesn't discover/skips the tests in the previous location.
2021-12-16 21:04:07 +01:00
Robert Hensing
9fb7d91888
Merge pull request #124556 from bergkvist/bergkvist/make-c-wrapper
...
Generate tiny compiled binary for wrapping executables
2021-12-10 00:45:30 +01:00
Jacek Galowicz
b7e00ed89e
make-binary-wrapper: Add -Wall -Werror -Wpedantic
2021-12-09 17:22:55 +01:00
Jacek Galowicz
177f0a6eed
make makeWrapper and makeBinaryWrapper drop-in-replaceable
2021-12-09 11:32:29 +00:00
Jacek Galowicz
e7c70ce5c8
Inject gcc path into makewrapper script
2021-12-09 11:32:29 +00:00
Jacek Galowicz
2bc7345064
Add golden effects test
2021-12-09 11:32:28 +00:00
(cdep)illabout
cfb2fd768e
tests.dhall.generateDhallDirectoryPackage: init
2021-12-07 13:36:20 +09:00
Tobias Bergkvist
d8375fbccb
Add tests for --inherit-argv0
and --chdir DIR
2021-12-02 04:03:36 +01:00
Tobias Bergkvist
a1e62262bc
Replace concat3 with asprintf in set_env_prefix and set_env_suffix.
2021-12-01 23:27:26 +01:00
Tobias Bergkvist
3997e9de67
Switch from malloc to calloc in addFlags
2021-12-01 23:07:30 +01:00
Tobias Bergkvist
97d62a90f5
Switch from exit(1) to abort() in assert_success
2021-12-01 22:56:18 +01:00
Tobias Bergkvist
4e55d34535
Add assertValidEnvName and check that variable name is valid during code generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't
2021-12-01 22:49:20 +01:00
Kim Lindberger
0039b0b5a8
Merge pull request #144564 from jtojnar/php-overridable
...
php: Implement overrideAttrs that composes with buildEnv/withExtensions
2021-11-15 18:12:44 +01:00
Jan Tojnar
968d180452
php: Implement overrideAttrs that composes with buildEnv/withExtensions
...
Hopefully.
Also add a couple of tests to check that.
2021-11-14 23:05:48 +01:00
Tobias Bergkvist
3a014be2f2
Assert that malloc does not return a NULL pointer for better error messages + to satisfy static analysis tools.
2021-11-09 02:56:32 +01:00
github-actions[bot]
e1766085b3
Merge master into haskell-updates
2021-11-09 00:10:05 +00:00
Dennis Gosnell
4d2b3b4d5a
Merge pull request #142825 from cdepillabout/buildDhallUrl
...
dhallPackages.buildDhallUrl: add function for easily building dhall remote imports
2021-11-08 13:44:37 +09:00
(cdep)illabout
10c5a4cca5
dhallPackages.buildDhallUrl: change argument from dhall-hash to dhallHash
2021-11-08 13:15:17 +09:00
Ellie Hermaszewska
15ae25f36c
haskell: switch from haskell.lib to haskell.lib.compose
2021-11-07 20:18:45 +08:00
Dennis Gosnell
2e1d84e9fb
dhallPackages.buildDhallUrl: small formatting fixes
...
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-01 13:44:50 +09:00
Robert Hensing
51f7c15df9
test.trivial-builders: Add test cases, fix test runner, rename
...
The writeStringReferencesToFile didn't handle non-unique references
to the same path correctly.
2021-11-01 00:06:03 +01:00
(cdep)illabout
9be3d05d7c
tests.dhall.buildDhallUrl: add test
2021-10-25 15:04:50 +09:00
Tobias Bergkvist
a95a7a22be
Switch from buildInputs to nativeBuildInpuits in makeGoldenTest
2021-10-19 18:35:42 +02:00
Tobias Bergkvist
7cca19a46a
Set strictDeps = true in makeGoldenTest
...
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2021-10-19 09:25:24 -07:00
Tobias Bergkvist
4b833cc141
EditorConfig: Switch from tabs to spaces
2021-10-04 22:38:14 +02:00