about summary refs log tree commit diff
path: root/pkgs/build-support/release
AgeCommit message (Collapse)AuthorFilesLines
2023-03-24treewide: don't hardcode /nix/store (no rebuilds changes)Artturin1-1/+1
improve experience for other store locations
2023-02-13treewide: use optionalStringFelix Buehler6-12/+12
2023-01-16treewide: remove usages of header and stopNestArtturin3-8/+4
they're obsolete
2022-12-18Merge staging-next into staginggithub-actions[bot]1-1/+1
2022-12-17treewide: fix typosfigsoda1-1/+1
2022-12-08stdenv: support opt-in __structuredAttrsArtturin1-1/+1
Co-authored-by: Robin Gloster <mail@glob.in> stdenv: print message if structuredAttrs is enabled stdenv: add _append reduces the chance of a user doing it wrong fix nix develop issue output hooks don't work yet in nix develop though making $outputs be the same on non-structuredAttrs and structuredAttrs is too much trouble. lets instead make a function that gets the output names reading environment file '/nix/store/2x7m69a2sm2kh0r6v0q5s9z1dh41m4xf-xz-5.2.5-env-bin' nix: src/nix/develop.cc:299: std::string Common::makeRcScript(nix::ref<nix::Store>, const BuildEnvironment&, const Path&): Assertion `outputs != buildEnvironment.vars.end()' failed. use a function to get all output names instead of using $outputs copy env functionality from https://github.com/NixOS/nixpkgs/pull/76732/commits
2022-10-10treewide: *Flags convert to list from strArtturin2-2/+7
*Flags implies a list slightly relevant: > stdenv: start deprecating non-list configureFlags https://github.com/NixOS/nixpkgs/pull/173172 the makeInstalledTests function in `nixos/tests/installed-tests/default.nix` isn't available outside of nixpkgs so it's not a breaking change
2021-10-27releaseTools.antBuild: removebb010g3-150/+0
The sole consumer in Nixpkgs of `releaseTools.antBuild` is `pkgs/development/libraries/junit`, which has been broken since 2015-09-08. The sole consumer in Nixpkgs of `junit` is `pkgs/development/libraries/junixsocket`, which hasn't built due to `junit` since 2015-09-08. All three are removed due to their obvious lack of use. All other packages in Nixpkgs depending on junit consume `pkgs/development/java-modules/junit`, which is not broken. Any downstreams that have kept using these `junit` or `junixsocket` packages since 2015-09-08 have basically already vendored the packages via patching them, so no aliases are provided.
2021-10-10releaseTools.debBuild: fix invocationTimur Demin1-1/+1
Somewhere after #110628, which replaced stdenv.lib with lib, up to bug #134572, lib got removed from the argument list, breaking any invocations of debBuild. This adds it back.
2021-03-29releaseTools: fix nixBuild functionSander van der Burg1-2/+2
Without this fix, I can no longer build anything with releaseTools.nixBuild {}. A job typically fails with: $ nix-build release.nix -A build.basic.x86_64-linux --show-trace error: while evaluating the attribute 'lib' of the derivation 'libnixxml-0.1pre1234' at /home/sander/teststuff/nixpkgs/pkgs/build-support/release/nix-build.nix:89:5: cannot coerce a set to a string, at /home/sander/teststuff/nixpkgs/pkgs/build-support/release/nix-build.nix:89:5 This is caused by the fact that `lib' is propagated as a parameter, which is a function. Functions cannot be converted to strings.
2021-03-21Merge pull request #112073 from ztzg/x-16304-debbuild-checkinstallSandro1-2/+2
2021-02-20treewide: unzip buildInputs to nativeBuildInputs (#112302)Ben Siraphob1-1/+2
2021-02-07releaseTools.debBuild: remove double lib in argsAshlynn Anderson1-1/+0
Seems to have been added during some sweeping changes, but breaks calling `releaseTools.debBuild`
2021-02-05debBuild: Fix for "cannot coerce a set to a string"Damien Diederen1-1/+1
Nix won't let us turn `lib` into an environment variable. As discussed here: https://github.com/NixOS/nixpkgs/pull/111672#issuecomment-773484089
2021-02-05debBuild: Fix "duplicate formal function argument 'lib'"Damien Diederen1-1/+1
As discussed here: https://github.com/NixOS/nixpkgs/pull/111672#issuecomment-773484089
2021-01-24pkgs/build-support: stdenv.lib -> libBen Siraphob3-10/+10
2021-01-24treewide: stdenv.lib -> libPavol Rusnak3-14/+13
2020-09-05nixos/testing: remove remaining coverage-data logicFlorian Klink2-53/+0
This isn't used anymore as per https://github.com/NixOS/nixpkgs/pull/72354#discussion_r451031449.
2020-03-21releaseTools: no-op expression cleanupBenjamin Hipple5-35/+30
No functional change, was just reading through these and cleaning/sanitizing them a bit while I'm here.
2019-08-28treewide: remove redundant recvolth1-1/+1
2019-02-26treewide: use runtimeShell instead of stdenv.shell whenever possibleJörg Thalheim1-1/+1
Whenever we create scripts that are installed to $out, we must use runtimeShell in order to get the shell that can be executed on the machine we create the package for. This is relevant for cross-compiling. The only use case for stdenv.shell are scripts that are executed as part of the build system. Usages in checkPhase are borderline however to decrease the likelyhood of people copying the wrong examples, I decided to use runtimeShell as well.
2018-08-30reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson1-1/+1
It is deprecated and will be removed after 18.09.
2018-08-10treewide: random cleanupsJan Malakhovski1-6/+6
2018-07-30stdenv/build-support: support .tbz and .txz tarballsJames Deikun1-1/+1
2018-02-19debBuild: install all packages at once to avoid dependency managementNikolay Amiantov1-1/+1
2018-01-09schedulingPriority should be an int, fix check-meta type and in-tree useWill Dietz1-1/+1
2017-11-21releaseTools.sourceTarball: Clean up temporary filesEelco Dolstra1-0/+1
2017-07-02Merge pull request #17681 from ericsagnes/feat/releaseTools.channelJoachim F1-0/+52
releaseTools: add channel function
2017-04-30/bin/sh -> ${stdenv.shell}rht1-1/+1
2016-12-31Revert "releaseTools.debBuild: split checkinstall into separate phase"Nikolay Amiantov1-12/+9
2016-12-03releaseTools.debBuild: split checkinstall into separate phase and allow to ↵Nikolay Amiantov1-9/+12
override them
2016-09-27releaseTools: add channel functionEric Sagnes1-0/+52
2016-07-26antBuild: run default hooksAlexey Shmalko1-11/+19
Fixes https://github.com/NixOS/nixpkgs/issues/10931. antBuild overrides buildPhase and installPhase without calling default hooks.
2016-05-19debian-build: fix checkinstall invocation (#15538)Profpatsch1-1/+5
Checkinstall had two problems: 1. when it was called without a version (e.g. with a derivation created by fetchFromGitHub) it would use `src` as debian version, which caused dpkg to fail 2. when dpkg failed, it would invoke the pager with the log, which hangs the build So now 1. the default version is the dummy `0.0.0` 2. the used pager is `cat`
2016-01-26build-support/source-tarball.nix: fix syntax highlighting in EmacsPeter Simons1-1/+1
2015-02-20clang-analyzer: align attrname with pkgnameBjørn Forsman2-2/+2
2015-01-07java: Normalize to the default jre / jdkWilliam A. Kennington III1-1/+1
2014-11-20Fix patchelf RPM buildsEelco Dolstra1-1/+1
http://hydra.nixos.org/build/17037187
2014-11-10findTarball: Fix the case where src is a directoryEelco Dolstra1-5/+3
2014-11-06nixBuild: Respect the preHook/postHook of the callerEelco Dolstra1-0/+5
2014-11-05findTarball: Handle pipefailEelco Dolstra6-11/+16
It was failing because the bash subshell died with SIGPIPE, which is no longer ignored. http://hydra.nixos.org/build/16766452
2014-11-05Die tabs dieEelco Dolstra1-16/+16
2014-11-05findTarballs: Take nullglob into accountEelco Dolstra1-2/+2
2014-08-14Make ant-build canonicalize the jars it produces so that we produce ↵Daniel Peebles2-1/+29
byte-for-byte identical jars (they normally contain timestamps and nondeterministic ordering of metadata lines)
2014-08-08Merge 'staging' into masterVladimír Čunát1-1/+1
2014-08-08debBuild: Allow setting the package name and overriding the install commandEelco Dolstra1-1/+3
2014-06-30Another attempt to eradicate ensureDirEelco Dolstra1-1/+1
See c556a6ea46e71e1907d78b71fab36df30297b3ad.
2014-05-07USe maven.test.skip in stead of maven.test.skip.exec in mvn assembly, to ↵Rob Vermaas1-1/+1
prevent unnecessary compilation.
2014-05-02releaseTools: add {clang,coverity}Analysis toolsAustin Seipp2-4/+69
These two expressions greatly simplify using the clang-analyzer or Coverity static analyzer on your C/C++ projects. In fact, they are identical to nixBuild in every way out of the box, and should 'Just Work' providing your code can be compiled with Clang already. The trick is that when running 'make', we actually just alias it to the appropriate scan build tool, and add a post-build hook that will bundle up the results appropriately and unalias it. For Clang, we put the results in $out/analysis and add an 'analysis' report to $out/nix-support/hydra-build-products pointing to the result HTML - this means that if the analyzer finds any bugs, the HTML results will automatically show up Hydra for easy viewing. For Coverity, it's slightly different. Instead we run the build tool and after we're done, we tar up the results in a format that Coverity Scan's service understands. We put the tarball in $out/tarballs under the name 'foo-cov-int.xz' and add an entry for the file to hydra-build-products as well for easy viewing. Of course for Coverity you must then upload the build. A Hydra plugin to do this is on the way, and it will automatically pick up the cov-int.tar.xz for uploading. Note that coverityAnalysis requires allowUnfree = true;, as well as the cov-build tools, which you can download from https://scan.coverity.com - they're not linked to your account or anything, it's just an annoying registration wall. Note this is a first draft. In particular, scan-build fixes the C/C++ compiler to be Clang, and it's perfectly reasonable to want to use Clang for the analyzer but have scan-build invoke GCC instead. Signed-off-by: Austin Seipp <aseipp@pobox.com>
2014-03-03Move generation of coverage reports from nixos/lib/testing to releaseToolsEelco Dolstra3-2/+55
Also, turn some stdenv adapters into setup hooks.