about summary refs log tree commit diff
path: root/pkgs/build-support
Commit message (Collapse)AuthorAge
* fhs-chrootenv: use -l to umount for the rbind mountAristid Breitkreuz2014-05-22
|
* fhs-chrootenv (steam): support directly using users other than root, fix ↵Aristid Breitkreuz2014-05-22
| | | | sound support, fix /run/user
* Update Ubuntu Packages.bz2 hashesEelco Dolstra2014-05-20
|
* Merge pull request #2668 from sol/print-git-revisionAustin Seipp2014-05-18
|\ | | | | nix-prefetch-git: Print git revision
| * nix-prefetch-git: Print git revisionSimon Hengel2014-05-16
| |
* | grsec: Fix vserver/stable packagingAustin Seipp2014-05-17
| | | | | | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* | grsec: refactor grsecurity packagesAustin Seipp2014-05-17
| | | | | | | | | | | | | | | | This now provides a handful of different grsecurity kernels for slightly different 'flavors' of packages. This doesn't change the grsecurity module to use them just yet, however. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* | Merge #2630: add and use fetchpatchVladimír Čunát2014-05-17
|/ | | | | | | | | | fetchpatch is fetchurl that determinizes the patch. Some parts of generated patches change from time to time, e.g. see #1983 and http://comments.gmane.org/gmane.linux.distributions.nixos/12815 Using fetchpatch should prevent the hash from changing. Conflicts (auto-solved): pkgs/development/libraries/haskell/gitit/default.nix
* Add -p to mkdir in build-fhs-chrootenv to prevent error if directory existsChris Double2014-05-15
|
* Re-write the Haskell Platform out of haskell-defaults.nix.Peter Simons2014-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Packages formerly called haskell-haskell-platform-ghcXYZ-VVVV.X.Y.Z are now called haskell-platform-VVVV.X.Y.Z. The latest version can be installed by running "nix-env -i haskell-platform". 2) The attributes haskellPackages_ghcXYZ.haskellPlatform no longer exist. Instead, we have attributes like haskellPlatformPackages."2012_4_0_0". (The last numeric bit must be quoted when used in a Nix file, but not on the command line to nix-env, nix-build, etc.) The latest Platform has a top-level alias called simply haskellPlatform. 3) The haskellPackages_ghcXYZ package sets offer the latest version of every library that GHC x.y.z can compile. For example, if 2.7 is the latest version of QuickCheck and if GHC 7.0.4 can compile that version, then haskellPackages_ghc704.QuickCheck refers to version 2.7. 4) All intermediate GHC releases were dropped from all-packages.nix to simplify our configuration. What remains is a haskellPackages_ghcXYZ set for the latest version of every major release branch, i.e. GHC 6.10.4, 6.12.3, 7.0.4, 7.2.2, 7.4.2, 7.6.3, 7.8.2, and 7.9.x (HEAD snapshot). 5) The ghcXYZPrefs functions in haskell-defaults.nix now inherit overrides from newer to older compilers, i.e. an override configured for GHC 7.0.4 will automatically apply to GHC 6.12.3 and 6.10.4, too. This change has reduced the redundancy in those configuration functions. The downside is that overriding an attribute for only one particular GHC version has become more difficult. In practice, this case doesn't occur much, though. 6) The 'cabal' builder has a brand-new argument called 'extension'. That function is "self : super : {}" by default and users can override it to mess with the attribute set passed to cabal.mkDerivation. An example use would be the definition of darcs in all-packages.nix: | darcs = haskellPackages.darcs.override { | cabal = haskellPackages.cabal.override { | extension = self : super : { | isLibrary = false; | configureFlags = "-f-library " + super.configureFlags or ""; | }; | }; | }; In this case, extension disables building the library part of the package to give us an executable-only version that has no dependencies on GHC or any other Haskell packages. The 'self' argument refers to the final version of the attribute set and 'super' refers to the original attribute set. Note that ... - Haskell Platform packages always provide the Haddock binary that came with the compiler. - Haskell Platform 2009.2.0.2 is broken because of build failures in cgi and cabal-install. - Haskell Platform 2010.1.0.0 is broken becasue of build failures in cgi.
* Merge pull request #2552 from CodeBlock/font-findAustin Seipp2014-05-13
|\ | | | | Use `find` instead of cp for installFonts.
| * Use `find` instead of cp for installFonts.Ricky Elrod2014-05-07
| | | | | | | | | | | | This allows fonts to be installed from anywhere in an unzipped file rather than having to cd deep into the directory and come back out in order for e.g. `forceCopy` to work correctly.
* | fetchurl: Fix typo in comment (close #2591)Linquize2014-05-13
| |
* | fetchFromGitHub: Use .tar.gz instead of .zipEelco Dolstra2014-05-09
| | | | | | | | Also clean up the name attribute of fetchzip derivations a bit.
* | Add a function "fetchzip"Eelco Dolstra2014-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | This function downloads and unpacks a file in one fixed-output derivation. This is primarily useful for dynamically generated zip files, such as GitHub's /archive URLs, where the unpacked content of the zip file doesn't change, but the zip file itself may (e.g. due to minor changes in the compression algorithm, or changes in timestamps). Fetchzip is implemented by extending fetchurl with a "postFetch" hook that is executed after the file has been downloaded. This hook can thus perform arbitrary checks or transformations on the downloaded file.
* | cabal: enable the split-objects feature again for current versions of GHCPeter Simons2014-05-07
| |
* | USe maven.test.skip in stead of maven.test.skip.exec in mvn assembly, to ↵Rob Vermaas2014-05-07
|/ | | | prevent unnecessary compilation.
* vm/windows: Wait for migration to finish.aszlig2014-05-07
| | | | | | | | | This ensures that the intermediate machine is shut down only after the migration has finished writing the memory dump to disk, to ensure we don't end up with empty state files depending on how fast the migration finished before we actually shut down the VM. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Exit if VM has dropped out.aszlig2014-05-07
| | | | | | | | | This ensures that the builder isn't waiting forever if the Windows VM drops dead while we're waiting for the controller VM to signal that a particular command has been executed on the Windows VM. It won't ever happen in such cases so it doesn't make sense to wait for the timeout. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Add a bunch of Fedora mirrors and remove an old oneRicky Elrod2014-05-06
|
* debian: Update to 7.5Eelco Dolstra2014-05-03
| | | | | | | [Note from Austin: I think @edolstra forgot to merge this to master.] (cherry picked from commit 02b056c5b180b4b8ba22ddc3061d78258e2ef98f on release-14.04)
* build-support/vm: add Ubuntu 14.04 Trusty TahirAustin Seipp2014-05-03
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* releaseTools: add {clang,coverity}Analysis toolsAustin Seipp2014-05-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* pkgs/build-support/cabal: revert "the release version of GHC 7.8.x no longer ↵Peter Simons2014-05-01
| | | | | | | | | | | | requires" This reverts commit a2a398fbda842594ab17d0b98f68dba4c51e49e8. The issue *does* still exist in GHC 7.8.2. Compiled binaries have no -rpath into their own install directory ("$out") and thus cannot find their own shared libraries. To work around this issue, we pass an explicit -rpath argument at configure time. We do that only on Linux, though, because -rpath is known to cause trouble on Darwin, which was the reason I originally reverted that patch.
* Add RHEL7 to vm functions.Rob Vermaas2014-05-01
|
* debian: Update to 6.0.9Eelco Dolstra2014-04-25
|
* Merge pull request #1928 from 'cross-win-osx'.aszlig2014-04-21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | This includes a lot of fixes for cross-building to Windows and Mac OS X and could possibly fix things even for non-cross-builds, like for example OpenSSL on Windows. The main reason for merging this in 14.04 already is that we already have runInWindowsVM in master and it doesn't work until we actually cross-build Cygwin's setup binary as the upstream version is a fast moving target which gets _overwritten_ on every new release. Conflicts: pkgs/top-level/all-packages.nix
| * gcc-cross-wrapper: Revert adding LD program name.aszlig2014-03-12
| | | | | | | | | | | | | | | | This reverts commit c5ab2bfd258501cbe5f440089039aff8e7595e3c. As mentioned in the previous commit, this is now no longer needed. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| *-. Merge 'mingw-w64' and 'darwin' into cross-win-osx.aszlig2014-03-12
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both branches have quite a lot in common, so it's time for a merge and do the cleanups with respect to both implementations and also generalize both implementations as much as possible. This also closes #1876. Conflicts: pkgs/development/interpreters/lua-5/5.2.nix pkgs/development/libraries/SDL/default.nix pkgs/development/libraries/glew/default.nix pkgs/top-level/all-packages.nix
| | | * gcc-cross-wrapper: Allow to pass US X min version.aszlig2014-03-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to pass a new attribute osxMinVersion to crossSystem, which specifies the minimum Mac OS X version you want to be compatible to. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| | * | gcc-cross-wrapper: Explicitly add LD program name.aszlig2014-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is because autoconf is passing -print-prog-name=ld to the cross-gcc, which in turn assumes a FHS compliant filesystem hierarchy and searches ../../../../$crossConfig/bin/ld for the correct ld. Of course, this won't work on Nix, hence we're explicitly passing the correct LD program name. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
| | * | gcc-cross-wrapper: Enable dontStrip in setup hook.aszlig2014-02-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At least for x86_64-w64-mingw32, it doesn't make sense to use the native strip tool for stripping of symbols. To the contrary it results in unusable archive files. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | | Move su to the base packages of chrootenv builderSander van der Burg2014-04-18
| | | |
* | | | pkgs/build-support/cabal: the release version of GHC 7.8.x no longer requiresPeter Simons2014-04-18
| | | | | | | | | | | | | | | | | | | | | | | | the -rpath hack added in 63c60638fcc148a3f1d786216c434da723aeef3d and edaa56041ceb3185d9c104ca72c457a5e7ae6e03 to produce dynamically linked executables
* | | | Fix initrd breaking by recent repeatable-builds changesMathijs Kwik2014-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See the comments at https://github.com/NixOS/nixpkgs/commit/f67015cae49400eba539b9ec8b9920643581c77c for more information. Please note: this makes initrd unrepeatable again, but most people will prefer that above an unbootable system.
* | | | Merge branch 'make-the-kernel-build-repeatable' of ↵Shea Levy2014-04-06
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | git://github.com/alexanderkjeldaas/nixpkgs Make the kernel build and initrd generation binary repeatable (#2128)
| * | | | Make initrd and the kernel builds repeatable.Alexander Kjeldaas2014-04-05
| | | | |
* | | | | gcc-wrapper: don't fail when cpp doesn't existVladimír Čunát2014-04-02
| | | | | | | | | | | | | | | | | | | | This is fixup for 1d3917bb #1820. Gnatboot doesn't have cpp.
* | | | | gcc-wrapper: preferLocalBuild, as it does little workVladimír Čunát2014-04-02
| | | | | | | | | | | | | | | | | | | | This is re-revert of e31523a369a.
* | | | | gcc-{,cross-}wrapper: add 'cpp' wrapper (close #1820)Bjørn Forsman2014-04-02
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gcc-wrapper doesn't wrap 'cpp'. This breaks some software (such as Buildroot) because the 'cpp' they get come from the non-wrapped gcc package which doesn't know about any standard include paths. gcc-cross-wrapper is untested.
* | | | Merge pull request #2010 from ambrop72/fetchgit-no-submodulesPeter Simons2014-03-26
|\ \ \ \ | | | | | | | | | | fetchgit: Implement option to not check out submodules.
| * | | | fetchgit: Implement option to not check out submodules.ambrop7@gmail.com2014-03-25
| | | | |
* | | | | Add memcache php moduleShea Levy2014-03-24
| | | | |
* | | | | Merge branch 'pkgs/build-support/writeTextDir' of ↵Shea Levy2014-03-23
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | git://github.com/offlinehacker/nixpkgs build-support: Add writeTextDir
| * | | | build-support: Add writeTextDirJaka Hudoklin2014-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | This `writeTextFile` based helper function is especially usefull for writing a bunch of configuration files to root of the output folder
* | | | | runInLinuxVM: Set the clock properlyEelco Dolstra2014-03-18
|/ / / /
* | | | Revert "Merge branch 'nix-run' of git://github.com/rickynils/nixpkgs"Shea Levy2014-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | nix-run's functionality is subsumed by nix-shell -p. This reverts commit 3cc2b243c7f2d906ce77968e75fd84a3f65a09e0, reversing changes made to 4d5d6aed29a0ee10a471fd870fa2fdb61408e4eb.
* | | | Merge branch 'nix-run' of git://github.com/rickynils/nixpkgsShea Levy2014-03-14
|\ \ \ \ | |/ / / |/| | | | | | | Add nix-run and myEnvRun
| * | | Add nix-run and myEnvRunRickard Nilsson2013-12-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds nix-run, which is a thin wrapper around nix-build. nix-run calls nix-build, and then executes the resulting build. If no executable artifact is built, nix-runs outputs an error message. myEnvRun calls myEnvFun and builds a script that directly runs the load-env-* script. Together, nix-run and myEnvRun allows you to set up an environment that can be loaded in this way: envs.nix: { gcc = myEnvRun { name = "gcc"; buildInputs = [ gcc ]; }; } $ nix-run -A gcc envs.nix You end up directly in your environment without having to do nix-env -i. You will always have a fresh environment and you don't have to pollute you profile with a lot of env packages.
* | | | Merge pull request #1869 from lovek323/texlive-fullVladimír Čunát2014-03-08
|\ \ \ \ | |_|_|/ |/| | | texLiveFull: fix build on Darwin