about summary refs log tree commit diff
path: root/pkgs/test
AgeCommit message (Collapse)AuthorFilesLines
2024-04-22stdenv: make inputDerivation never fixed-outputJade Lovelace1-0/+22
This fixes using inputDerivation on derivations that are fixed-output. Previously: ``` nix-repl> drv = runCommand "huh" { outputHash = "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="; outputHashAlgo = "sha256"; outputHashType = "flat"; } "touch $out" nix-repl> drv.inputDerivation «derivation /nix/store/d8mjs6cmmvsr1fv7psm6imis5pmh9bcs-huh.drv» nix-repl> :b drv.inputDerivation error: fixed output derivation 'huh' is not allowed to refer to other store paths. You may need to use the 'unsafeDiscardReferences' derivation attribute, see the manual for more details. ``` Fixes: https://github.com/NixOS/nixpkgs/issues/304209 (cherry picked from commit 78945a827cc5f2e5b97b7ca9807f7ac111086a1e)
2024-01-14Merge staging-next-23.11 into staging-23.11github-actions[bot]5-0/+219
2024-01-10tests.checkpoint-build: Fix evaluation with allowAliases falseSilvan Mosberger1-4/+4
Was broken since introduced, but not caught due to https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594 (cherry picked from commit 69460711750d4bb4718516fdb155145e922ff610)
2024-01-10checkpointBuildTools: mkCheckpointedBuild -> mkCheckpointBuildBryan Lai2-3/+3
All other functions are in the form of `*{c,C}heckpointBuild*`, so we deprecate the `mkCheckpointedBuild` function in favor of `mkCheckpointBuild`. Also address some inconsistencies in the docs: some `buildOutput` should actually be `incrementalBuildArtifacts`. (cherry picked from commit df62c3c87f35cd50d6ee20ea92900bb03ad827c9)
2024-01-10Merge pull request #167670 from messemar/incremental-buildsJanne Heß5-0/+219
incremental builds: add derivation override functions (cherry picked from commit 5eed5416ffa70d1a6c1ff00548c746014df7e2c6)
2023-12-22Test __structuredAttrs support in autoPatchelfYann Hamdaoui3-0/+104
This commit adds a test for the newly added support for __structuredAttrs in autoPatchelf(hook). It copied a reasonably small-closure binary derivation that makes use of autoPatchelf, stripped it down for the purpose of the test, and check that autoPatchelf correctly set the interpreter and runpath whether __structuredAttrs is set to true or not. (cherry picked from commit 00d0418804e96e381d40a07bf784e408c4d206f4)
2023-11-21makeHardcodeGsettingsPatch: Support applying patchesJan Tojnar4-2/+66
This is useful for replacing code that cannot be easily handled by the generator, such as the tentative settings constructor in e-d-s.
2023-11-21Merge pull request #267048 from narang99/hariom/257748/check-by-name-msgSilvan Mosberger2-5/+13
fix long error messages in nix-instantiate
2023-11-21made EXPR_PATH point to local instead of storeHariom Narang2-4/+5
- we need this behavior in dev shell - the main build still uses the store file
2023-11-19Merge pull request #268224 from tweag/by-name-reloadSilvan Mosberger1-0/+6
tests.nixpkgs-check-by-name: More reliable .envrc reloading
2023-11-19Merge pull request #268018 from amjoseph-nixpkgs/pr/testcase/267859Artturi1-0/+3
2023-11-18tests.nixpkgs-check-by-name: More reliable .envrc reloadingSilvan Mosberger1-0/+6
See also https://github.com/nix-community/nix-direnv/issues/408 and https://github.com/nix-community/nix-direnv/pull/407
2023-11-17llvmPackages_5: dropRaito Bezarius1-1/+0
While using very old compilers is a fair usecase, it induces a maintenance churn as we collect more and more LLVM versions for the LLVM maintainers. Especially when we need to backport uniform changes to the whole tree, furthermore, it consumes and waste CI resources.
2023-11-16tests.cross.sanity: add test case for #267859Adam Joseph1-0/+3
This commit adds pkgs.spike, which internally uses pkgsCross.riscv64-embedded.stdenv.cc, as a test case for the issue reported in https://github.com/NixOS/nixpkgs/issues/267859
2023-11-16Merge branch 'master' into staging-nextVladimír Čunát3-18/+37
2023-11-16tests.cc-wrapper.supported: make it actually build the testsArtturin1-17/+19
it was building the stdenv only
2023-11-16tests.cc-wrapper: add atomics testArtturin2-1/+18
`-std=c++17` is for clang 5
2023-11-14pass eval.nix as a file instead of expressionHariom Narang2-5/+12
- passing it as expression gives large error messages which are not very readable - this commits puts the file in nix-store and patches the final program to have access to the path to the file as env. - We simply pass this file to nix-instantiate
2023-11-09Merge master into staging-nextgithub-actions[bot]2-25/+36
2023-11-09cudaPackages.cuda-samples: alphabetize argumentsConnor Baker1-6/+6
2023-11-07cudaPackages.cuda-samples: fix CMake build error on 12.2+Connor Baker1-1/+15
2023-11-07cudaPackages.cuda-samples: don't list package for unsupported CUDA versionConnor Baker1-4/+4
2023-11-07cudaPackages_12_2.cuda-samples: init at 12.2Connor Baker1-0/+1
2023-11-07cudaPackages_12_1.cuda-samples: init at 12.1Connor Baker1-0/+1
2023-11-07cudaPackages.cuda-samples: use packages from cudaPackages scope; not top-levelConnor Baker1-4/+5
2023-11-07cudaPackages.cuda-samples: switch to autoAddOpenGLRunpathHook from manual ↵Connor Baker1-8/+2
addOpenGLRunpath
2023-11-07cudaPackages.cuda-samples: add CUDA team as maintainersConnor Baker1-1/+1
2023-11-07cudaPackages.cuda-samples: use finalAttrs instead of recConnor Baker1-5/+5
2023-11-07Merge master into staging-nextgithub-actions[bot]1-22/+19
2023-11-06Merge pull request #265514 from xworld21/treewide-texlive-with-packagesDmitry Kalinkin1-22/+19
treewide: switch to texlive.withPackages
2023-11-05tests.texlive.fixedHashes: ignore .tex attribute sets that are not derivationsVincenzo Mantova1-1/+1
2023-11-05tests.texlive: use texlive.pkgs.PKGNAME attribute set instead of ↵Vincenzo Mantova1-3/+3
texlive.PKGNAME.pkgs list
2023-11-05tests.texlive: replace texlive.combine with texlive.withPackagesVincenzo Mantova1-18/+15
2023-11-05Merge master into staging-nextgithub-actions[bot]1-0/+4
2023-11-05test.cross.sanity: add qt5.qutebrowser, firefoxAdam Joseph1-0/+4
2023-11-04texlive: export schemes at top levelVincenzo Mantova1-1/+1
2023-11-04Merge master into staging-nextgithub-actions[bot]2-4/+7
2023-11-04lib.systems, test.cross.sanity: add test case for #264989Adam Joseph1-0/+1
We have several cross-compilation bugs that show up if hostPlatform!=buildPlatform yet hostPlatform.config==buildPlatform.config. These bugs have appeared and disappeared as we've fiddled with the definition of equality for platform objects. This commit adds a clear-cut case where they are *not* equal and never will be, so we can test it.
2023-11-04tests: fix eval failuresArtturin2-4/+6
2023-11-03Merge master into staging-nextgithub-actions[bot]1-0/+6
2023-11-03tests.cross.sanity: add pkgs.pkgsMusl.pkgsCross.gnu64.hello (#262876)Adam Joseph1-0/+6
2023-11-01Merge master into staging-nextgithub-actions[bot]1-9/+10
2023-11-01Merge pull request #250805 from xworld21/texlive-buildenv-minimalDmitry Kalinkin1-9/+10
texlive: overrideTeXConfig/withPackages
2023-10-30Merge master into staging-nextgithub-actions[bot]10-350/+687
2023-10-30Merge pull request #261939 from tweag/check-by-name-intermediateSilvan Mosberger10-350/+687
`nixpkgs-check-by-name`: Intermediate error representation refactor
2023-10-28Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-10-28fetchFromBittorrent: Rename to fetchtorrentEirik Wittersø1-1/+1
2023-10-26Merge master into staging-nextgithub-actions[bot]1-0/+9
2023-10-26Merge branch 'staging' into staging-nextVladimír Čunát1-1/+1
2023-10-25tests/stdenv: Check derivations with an MD5 `outputHash` fail to evaluatenicoo1-0/+9