William A. Kennington III
4fcbe096b6
fetchgit: Simplify submodule url discovery
2014-12-04 15:17:58 -08:00
Bas van Dijk
35cdb19f03
Use mkdir -p instead of deprecated ensureDir
2014-11-29 14:24:31 +01:00
Vladimír Čunát
cbd2305d4d
Merge branch 'master' into staging
2014-11-28 18:59:07 +01:00
aszlig
444987193e
nixos: Rename virtualbox to virtualboxGuest.
...
Especially new users could be confused by this, so we're now marking
services.virtualbox.enable as obsolete and defaulting to
services.virtualboxGuest.enable instead. I believe this now makes it
clear, that this option is for guest additions only.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-11-27 18:42:22 +01:00
Vladimír Čunát
b5ff06eda4
Merge branch 'master' into staging
2014-11-26 21:48:26 +01:00
Vladimír Čunát
b1803465d9
imagemagick: use a stable URL, reshuffle mirrors
...
CC: #5133 .
2014-11-26 21:42:42 +01:00
Peter Simons
c7d3f60217
cabal: add support for "editedCabalFile" attribute to address https://github.com/NixOS/cabal2nix/issues/84
...
When 'editedCabalFile' is set to an SHA256 hash, the build driver replaces the
original Cabal instructions with the new version that is downloaded from
"http://hackage.haskell.org/package/${fname}/${pname}.cabal ".
2014-11-26 14:24:45 +01:00
Eelco Dolstra
e611215f5c
Move finding XML catalogs into a separate setup hook
...
This is because libxml/libxslt are not the only implementations that
respect $XML_CATALOG_FILES.
Also, look in share/xml for catalogs (in addition to the
now-deprecated xml/dtd and xml/xsl).
2014-11-25 16:23:48 +01:00
Vladimír Čunát
a9bad25ffe
Merge branch 'master' into staging
2014-11-24 22:14:25 +01:00
Domen Kožar
909b62fa6e
fetchurl: friendly message if hash is not given
2014-11-23 17:49:32 +01:00
Eelco Dolstra
17cf42d876
Fix patchelf RPM builds
...
http://hydra.nixos.org/build/17037187
2014-11-20 13:19:36 +01:00
Eelco Dolstra
99a2afd784
Update to Debian 7.7
2014-11-20 11:11:21 +01:00
Eelco Dolstra
e5513ac4dc
Add Ubuntu 14.10
2014-11-20 11:11:08 +01:00
Eelco Dolstra
fda5c17a6f
vmTools: Fix permissions on /tmp and /dev/*
2014-11-18 14:49:39 +01:00
Vladimír Čunát
8e44ae5bd4
stdenv lib64-moving: fail instead of overwriting
...
Silent overwriting is dangerous and it bit us straightaway on gcc_multi.
https://github.com/NixOS/nixpkgs/commit/51f1b4ec48d5
2014-11-17 11:27:38 +01:00
Vincent Laporte
cded306f82
nix-prefetch-git: allow dots in submodule names
2014-11-15 18:37:58 +00:00
Peter Simons
ffb635eb65
cabal: fix GHC 6.10.4 builds
...
3e8344d334
added some magic -optP-P flag that the old compiler
version doesn't support.
2014-11-15 18:20:40 +01:00
Eelco Dolstra
0a9ec07b93
findTarball: Fix the case where src is a directory
2014-11-10 20:06:50 +01:00
Edward Tjörnhammar
4030ab3ba4
add parens to de ambiguify
2014-11-10 06:53:24 +01:00
Edward Tjörnhammar
91c7ffc498
Revert "Revert "initialized git repo should use the set http_proxy""
...
This reverts commit f8a833cfb1
.
This makes sure the check returns a zero code.
See discussion on https://github.com/NixOS/nixpkgs/commit/5af576f
2014-11-09 21:27:26 +01:00
Luca Bruno
f8a833cfb1
Revert "initialized git repo should use the set http_proxy"
...
This reverts commit 5af576ff7f
.
See discussion on https://github.com/NixOS/nixpkgs/commit/5af576f
2014-11-09 13:50:48 +01:00
Luca Bruno
83221f3886
Merge branch 'master' into staging
...
Makes the build more useful:
- Disabled hybrid iso, makes installer tests pass again
- Imagemagick fixes to the "Illegal instruction" thing
2014-11-08 15:56:40 +01:00
Peter Simons
44273088ad
cabal: enable multi-threaded builds with GHC 7.8.x or later for executables
...
Multi-threaded builds exacerbate the non-determinism in ghc package ids, which
is a serious problem for libraries. Packages that define only executables,
however, should be safe to build with parallelism enabled.
2014-11-07 23:22:27 +01:00
Peter Simons
40bb2781ee
cabal: add "-hidir $TMPDIR" parameter to ghc call that compiles Setup.hs
...
Packages that don't have a Setup.hs file get to use a default version that
lives in the Nix store. By default ghc tries to put the Setup.o and Setup.hi
files in the same directory as the source file, which isn't writable. This
leads to build errors [1]. Thus, we re-direct those paths to a build-local
writable location: $TMPDIR.
Arguably, we could also use "." or copy the /nix/store/deadbeef-Setup.hs file
into the local source directory before compiling, which would work fine, too.
[1] https://github.com/NixOS/nixpkgs/issues/4851
2014-11-07 23:22:25 +01:00
Edward Tjörnhammar
5af576ff7f
initialized git repo should use the set http_proxy
2014-11-07 11:50:30 +01:00
Eelco Dolstra
f01ecbee50
nixBuild: Respect the preHook/postHook of the caller
2014-11-06 11:12:29 +01:00
Eelco Dolstra
c964077200
findTarball: Handle pipefail
...
It was failing because the bash subshell died with SIGPIPE, which is
no longer ignored.
http://hydra.nixos.org/build/16766452
2014-11-05 18:24:16 +01:00
Eelco Dolstra
83758d2b26
Die tabs die
2014-11-05 18:12:21 +01:00
Eelco Dolstra
2d498a3c1c
findTarballs: Take nullglob into account
2014-11-05 18:12:07 +01:00
Vladimír Čunát
52404a868d
Merge recent master into staging
...
Nixpkgs Hydra: ?compare=1157272
TODO: port e22889064f
Conflicts:
nixos/tests/gnome3_10.nix (auto-solved)
pkgs/applications/video/aegisub/default.nix
pkgs/development/libraries/boost/1.55.nix
2014-11-05 15:00:44 +01:00
Eelco Dolstra
7495c61d49
Merge remote-tracking branch 'origin/darwin-clang-stdenv' into staging
...
Conflicts:
pkgs/applications/editors/vim/macvim.nix
2014-11-04 14:30:43 +01:00
Joachim Fasting
71a443c1b2
Add mirrors for sage
2014-11-03 23:04:44 +01:00
Bjørn Forsman
96cacf01bf
nix-prefetch-git: run single-threaded 'git repack'
...
Without this, the generated pack files are non-deterministic.
I didn't notice this issue in my earlier testing, because my test repo
had too few commits for the thread scheduling to take effect. (Test repo
had about 10 commits.)
2014-11-03 22:52:57 +01:00
Peter Simons
a9c53037fa
Merge remote-tracking branch 'origin/master' into staging.
2014-11-02 16:15:53 +01:00
Bjørn Forsman
53614cf1a7
nix-prefetch-git: fix determinism with leaveDotGit
...
Add more files to the delete list:
* .git/FETCH_HEAD
* .git/ORIG_HEAD
* .git/refs/remotes/origin/HEAD
* .git/config
Further, remove all remote branches, remove tags not reachable from the
given 'rev', do a full repack and then garbage collect unreferenced
objects.
According to my testing, the result is fully deterministic. As in "any
change done to the upstream repo, ahead of 'rev', will not affect the
hash of the resulting 'clone'". Even changing the clone URL will not
change the output hash, because .git/config is removed.
A new version of git can of course change store format, but that's
unavoidable.
For big repositories, the repack operation may be a bit heavy. But as
far as I can see there is no cheaper way to determinism.
2014-11-02 13:15:33 +01:00
Bjørn Forsman
faaa8a6acf
nix-prefetch-git: remove unneeded semicolons
...
Shell isn't Perl ;-)
2014-11-01 15:17:11 +01:00
Bjørn Forsman
8ec8358724
nix-prefetch-git: whitespace cleanup
...
Use 4 spaces per indent level instead of a mix of 2 spaces, 4 spaces and
hardtab. (According to nixpkgs coding style for shell scripts.)
2014-11-01 13:47:37 +01:00
Peter Simons
b11060d8db
Merge remote-tracking branch 'origin/master' into staging.
2014-10-31 11:14:24 +01:00
Eelco Dolstra
2ee8b30b64
stdenv.lib -> lib
2014-10-27 10:25:35 +01:00
Moritz Ulrich
cdd2dd70aa
Merge remote-tracking branch 'refs/remotes/origin/master' into chicken-eggs
2014-10-27 01:14:13 +01:00
Raffael Mancini
3ee2ca1d21
Added an up-to-date http debian mirror for those without ftp access.
2014-10-25 17:10:22 +02:00
Eelco Dolstra
f4be4f5e54
Merge remote-tracking branch 'origin/master' into staging
2014-10-24 12:24:13 +02:00
Edward Tjörnhammar
a5af1c228e
Adding fetchurl mirrors for roy marples projects(dhcpcd, openresolv)
2014-10-23 19:45:33 +02:00
Vladimír Čunát
2cf17b0802
Merge recent master into staging
...
Hydra nixpkgs: ?compare=1156478
2014-10-23 17:40:41 +02:00
Ricardo M. Correia
cb95ac1352
Merge pull request #4609 from alexanderkjeldaas/updated-grsec
...
Updated grsec.
2014-10-22 16:37:21 +02:00
Chris Double
40791a4ec5
Fix build-fhs-chrootenv mount script
2014-10-22 10:39:17 +02:00
Alexander Kjeldaas
005bb796e6
Updated grsec.
2014-10-22 02:18:41 +02:00
Peter Simons
bddf342631
Patch 7a20d76
failed when the Haskell expression lacked a meta attribute. This commit fixes that issue.
2014-10-22 00:23:12 +02:00
Peter Simons
7a20d76482
Disable all Haskell builds for Darwin on Hydra.
...
Hydra generates a GHC closure for Darwin that for no apparent reason
contains an ancient, broken Haddock binary -- probably because of an
impurity in the build system. That bug makes those GHC binaries
unusable: <https://github.com/NixOS/nixpkgs/issues/2689 >.
2014-10-21 23:54:51 +02:00
Shea Levy
3fe41ca763
Debain 7.6-amd64 tarball was updated in place
2014-10-20 15:26:51 -04:00
Shea Levy
652030e85d
debian packages tarball was updated in place
2014-10-20 15:23:44 -04:00
Shea Levy
a3ffe238e7
Revert "cabal: enable multi-threaded builds with GHC 7.8.x or later"
...
This likely exacerbates the non-determinism in ghc package ids, so until
that is fixed let's live with the slow builds.
This reverts commit 817c0e4144
.
2014-10-16 13:17:30 -04:00
Nikolay Amiantov
09f33a4389
substituteAllFiles: add derivation
...
Closes #4145
2014-10-16 15:27:25 +01:00
Moritz Ulrich
e47428d0e2
Infrastructure to build chicken eggs.
2014-10-13 23:29:27 +02:00
Eelco Dolstra
2c65f3fa66
Fix stdenv-native
2014-10-11 23:10:27 +02:00
Eelco Dolstra
79d0d7b437
Unify gcc-wrapper and clang-wrapper
2014-10-11 22:26:39 +02:00
Eelco Dolstra
0d67d13527
gcc-wrapper: Style fix
2014-10-11 22:26:39 +02:00
Eelco Dolstra
02122ccfd0
gcc-wrapper: Style fix
2014-10-11 22:26:39 +02:00
Eelco Dolstra
ffbdcbfe29
gcc-wrapper: Wrap ld.gold
...
This ensures that gcc's ‘-fuse-ld=gold’ flag works.
2014-10-10 14:55:17 +02:00
Eelco Dolstra
3e0a348728
gcc-wrapper: Get rid of builder.sh + cleanup
2014-10-10 14:55:08 +02:00
Eelco Dolstra
811de3bfaa
Merge remote-tracking branch 'origin/staging' into darwin-clang-stdenv
...
Conflicts:
pkgs/tools/security/gnupg/default.nix
2014-10-09 10:57:57 +02:00
Eelco Dolstra
51f1b4ec48
Automatically move stuff in lib64 to lib
2014-10-07 15:04:13 +02:00
Eelco Dolstra
ab04b7d0bb
Automatically move programs in sbin to bin
...
This should fix the OpenJDK build, which was failing because paxctl is
in sbin and therefore not automatically added to $PATH.
http://hydra.nixos.org/build/15658346
2014-10-07 14:43:56 +02:00
Eelco Dolstra
a85dcf4a00
Merge remote-tracking branch 'origin/master' into staging
...
Conflicts:
pkgs/development/libraries/libav/default.nix
pkgs/shells/bash/bash-4.2-patches.nix
pkgs/stdenv/generic/default.nix
2014-10-07 00:09:37 +02:00
Ryan Trinkle
92f8d68b99
Merge branch 'master' of https://github.com/NixOS/nixpkgs
...
Conflicts:
pkgs/development/libraries/haskell/ghcjs-dom/default.nix
pkgs/top-level/haskell-packages.nix
2014-10-06 13:12:58 -04:00
Aristid Breitkreuz
5c0816567d
fix fetchurl
2014-10-05 19:23:27 +02:00
Domen Kožar
d6b7778753
fetchurl: fix mirroring after ecf5a08831
2014-10-05 09:53:18 +02:00
Domen Kožar
ecf5a08831
Merge pull request #4350 from NixOS/curl_partial_download
...
fetchurl: resume download of curl exits with status code 18
2014-10-03 10:29:27 +02:00
Daniel Peebles
c55c435ade
Add Apple command-line tools
...
Closes #4365
2014-10-02 06:50:09 +01:00
Domen Kožar
fd48e801d2
fetchurl: resume download of curl exits with status code 18
2014-10-01 13:58:42 +02:00
Daniel Peebles
0e9cf136af
A simple ADC downloader for upcoming darwin awesomeness
...
Closes #4327
2014-10-01 02:10:31 +01:00
Russell O'Connor
94c6af494a
Exponentially reduce computation time needed for replace-dependency by using memoization.
...
This patch makes two changes.
(1) It memoizes the computation of dependsOnOld.
(2) It replaces rewrittenDerivations with a similar memoized table rewriteMemo.
This prevents the entire tree of run-time dependencies from being traversed and instead only traverses the graph of run-time dependencies.
In the case of deep dependency changes (such as changing one's bash version for an entire NixOS system) this can lead to an exponential speedup in processing time
because shared dependencies are no longer traversed multiple times.
This patch isn't quite derivation-per-derivation equivalent to the original computation.
There are two immaterial differences.
(1) The previous version would always call upon sed to replace oldDependency with newDependency even when the store object being updated doesn't directly depend on
oldDependency.
The new version only replaceds oldDependency with newDependency when the store object being updated actually directly depends on oldDependency (which means there is
actually a hash to replace).
(2) The previous version would list the old store object as a source input of the new store object, *except* for the root derivation being updated. Because the
root derivation being updated has its actual derivation avaiable the previous verions would make the updated root derivation depend on the old derivation as a
derivation input instead of a source input.
The new version always lists the old store object as a source input, including the root derivation.
2014-09-28 09:39:39 -04:00
Eelco Dolstra
1e6dfdf29c
clang-wrapper: Remove explicit dependency on libc++
...
Now libc++ is just another build input propagated from clang-wrapper.
2014-09-24 17:55:05 +02:00
Eelco Dolstra
07f603f89e
libc++: Use the right libc++abi re-export list
...
Also, remove the explicit -lc++abi flag from clang-wrapper. It's not
needed because libc++ re-exports the necessary symbols from libc++abi.
2014-09-24 16:39:36 +02:00
Eelco Dolstra
ae18038c6d
fixDarwinDylibNames: Use new hook mechanism
2014-09-24 16:12:49 +02:00
Eelco Dolstra
66dedaa6ee
gcc-wrapper: Remove NIX_GCC_NEEDS_GREP
...
This is not needed on any currently supported platform.
2014-09-23 19:43:38 +02:00
Eelco Dolstra
91fa55e702
Remove references to <nixpkgs>
...
Nixpkgs should not use <nixpkgs> to refer to itself, because $NIX_PATH
might not be set or not point to the same Nixpkgs. It's also
unnecessary.
2014-09-23 15:48:15 +02:00
Eelco Dolstra
cd71f7a2e6
Merge branch 'darwin-stdenv' of github.com:joelteon/nixpkgs into staging
...
Conflicts:
pkgs/development/interpreters/ruby/ruby-19.nix
pkgs/development/libraries/libc++/default.nix
pkgs/development/libraries/libc++abi/default.nix
pkgs/tools/text/sgml/opensp/default.nix
2014-09-23 11:27:53 +02:00
Mathijs Kwik
e80cbedbae
VM builds: Use default kernel
...
(this was set to 3.10 when 3.4 was our default)
See commit d846e97656
.
2014-09-23 09:17:01 +02:00
Ryan Trinkle
e4ff3fd348
Add defaultSetupHs to ghcjs, and fix it in regular cabal
2014-09-20 18:54:09 -04:00
Eelco Dolstra
552b105206
gcc-wrapper: Use a real date
...
Analogous to the fake timestamp in the Linux kernel build.
2014-09-15 09:26:41 +02:00
Gergely Risko
e766f0b0d0
Fix __DATE__ and __TIME__ purification in gcc-wrapper
2014-09-14 22:33:48 +02:00
Vladimír Čunát
d957b4bd78
Merge recent master into staging
...
Hydra nixpkgs: ?compare=1151601
2014-09-13 21:48:29 +02:00
Alexander Kjeldaas
aa119e1106
gcc-wrapper: make __DATE__/__TIME__ deterministic
...
...when NIX_ENFORCE_PURITY=1.
@vcunat corrected the date according to docs.
https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
In order to handle the spaces well, the extraAfter array had to be
quoted more properly and appended by +=.
2014-09-13 15:32:34 +02:00
Joel Taylor
3e8344d334
suitable clang stdenv
2014-09-09 13:54:24 -07:00
Christoph Hrdinka
4f5b4ceb85
build-fhs-chrootenv: bind mount chroots /tmp to hosts /tmp
2014-09-09 12:10:54 +02:00
Vladimír Čunát
82797f98f2
Merge branch 'staging' into modular-stdenv
...
Conflicts:
pkgs/development/interpreters/perl/5.10/setup-hook.sh
pkgs/development/interpreters/perl/5.8/setup-hook.sh
pkgs/stdenv/linux/default.nix
2014-09-08 18:24:58 +02:00
Vladimír Čunát
1e389c976c
merge 'staging' into modular-stdenv
...
In 2c62a36b77
the messages in pkgs/stdenv/generic/default.nix
were not merged correctly.
Conflicts:
pkgs/stdenv/generic/default.nix
2014-09-08 18:16:54 +02:00
Ricardo M. Correia
238a84ac78
grsecurity: Update stable and test patches
...
stable: 3.0-3.14.17-201408260041 -> 3.0-3.14.18-201409060013
test: 3.0-3.15.10-201408212335 -> 3.0-3.16.2-201409060014
2014-09-08 15:16:38 +02:00
Eelco Dolstra
585983bc95
Merge remote-tracking branch 'origin/staging'
...
Conflicts:
pkgs/applications/version-management/subversion/default.nix
2014-09-08 11:42:09 +02:00
Vladimír Čunát
06fea81c6e
Merge recent master into staging
...
Hydra: ?compare=1150594
2014-09-06 16:52:45 +02:00
Christoph Hrdinka
573aa18e9f
steam: fix extraBuildCommandsMulti on i686
2014-09-06 00:25:49 +02:00
Christoph Hrdinka
c376b1afa0
build-fhs-chrootenv: fix gcc libs on i686
2014-09-06 00:25:49 +02:00
Christoph Hrdinka
64f873461f
build-fhs-chrootenv: fix gcc libs on x86
2014-09-06 00:25:49 +02:00
Christoph Hrdinka
2d912e29d5
build-fhs-chrootenv: fix gcc_multi paths
2014-09-06 00:25:49 +02:00
Christoph Hrdinka
72b1f874ef
buildFHSChrootEnv: fix merge error
2014-09-06 00:25:48 +02:00
Christoph Hrdinka
c5f51039f4
steam: fix steam on x86_64
2014-09-06 00:25:48 +02:00
Eelco Dolstra
7e744041f3
rpm-closure.pl: Reduce verbosity
2014-09-05 12:37:07 +02:00
Peter Simons
ca931e0e1e
Merge pull request #3915 from Fuuzetsu/agda-builder
...
RFC: Agda builder
2014-09-04 11:28:47 +02:00
Michael Raskin
46cdc2e017
Allow git checkouts to have custom name
2014-09-03 21:54:25 +04:00
Michael Raskin
76f4eb5f93
Revert "python-wrapper: fix wrapped argv[0] w/o sed, maybe"
...
This reverts commit a6dd9bd0cb
.
2014-09-02 20:45:41 +04:00
Michael Raskin
af4c369d0a
Revert "Create wrapper directory outside of /bin/ for FHS chroots to be closer to FHS"
...
This reverts commit 9deb7f8aae
.
2014-09-02 20:17:55 +04:00
Eelco Dolstra
715943a6fb
ld-wrapper: Put back the --sysroot filter
...
We still need this because some clang-based packages depend on
it. (The sysroot filtering was originally done by clang-wrapper's
ld-wrapper, but we merged the ld-wrappers in
a4f9b9c8b5ec9ef106671ffdf93e0059835d0ec1.)
http://hydra.nixos.org/build/13906922
2014-09-02 13:18:03 +02:00
Peter Simons
1c0d15b90e
Merge branch 'origin/master' into staging.
...
Conflicts:
pkgs/development/libraries/ffmpeg/2.x.nix
pkgs/development/libraries/serf/default.nix
2014-09-02 12:31:03 +02:00
Michael Raskin
5addaeb74f
More support for SF.net in auto-updater
2014-09-02 14:25:16 +04:00
Michael Raskin
9deb7f8aae
Create wrapper directory outside of /bin/ for FHS chroots to be closer to FHS
2014-09-02 01:45:15 +04:00
tv@shackspace.de
a6dd9bd0cb
python-wrapper: fix wrapped argv[0] w/o sed, maybe
2014-09-02 01:31:49 +04:00
Mateusz Kowalczyk
d54b62ca60
Add a builder for Agda packages.
2014-09-01 01:05:48 +01:00
Ryan Trinkle
68648f5581
Merge branch 'ghcjs-old' into HEAD
...
Conflicts:
pkgs/development/tools/haskell/ghcjs/default.nix
2014-08-30 16:30:58 -04:00
Vladimír Čunát
e51f73652d
Merge recent master into staging
...
Hydra: ?compare=1149952
Conflicts:
nixos/doc/manual/configuration.xml (changed split file)
nixos/modules/config/users-groups.nix (choosing filterNull instead of inline definition)
pkgs/development/libraries/readline/readline6.3.nix (auto-solved)
2014-08-30 10:04:02 +02:00
Ryan Trinkle
fa211963ed
Another try at fixing the install_name_tool issue.
2014-08-27 13:23:10 -04:00
Ryan Trinkle
bc92dcd08c
Prevent install_name_tool from causing a failure when it encounters a non-Mach-O file (e.g.: a bash script).
2014-08-27 13:15:33 -04:00
aszlig
5e7a1cf955
build-support: Fix nix-prefetch-* on OS X.
...
Fixes a regression on OS X introduced by f83af95
.
Don't use --tmpdir for mktemp, because that flag doesn't exist on OS X.
However, using -t is deprecated in GNU coreutils, so as suggested by
@ip1981 we're now using parameter expansion on ${TMPDIR:-/tmp} to
provide /tmp as a fallback if TMPDIR is not set and use it instead.
Also use this approach for nix-prefetch-cvs now in order to stay
consistent.
Reported-by: Vladimir Kirillov <proger@wilab.org.ua>
Tested-by: Igor Pashev <pashev.igor@gmail.com>
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-08-27 11:22:34 +02:00
Ryan Trinkle
4394858433
Integrate ghcjs
...
Use nixpkgs.haskellPackages_ghcjs to build packages with ghcjs.
2014-08-26 13:35:29 -04:00
Ryan Trinkle
1c9166f649
Factor out ghcjs's libdir better.
2014-08-25 18:46:52 -04:00
aszlig
f83af95f8a
build-support: Use mktemp -d in nix-prefetch-*.
...
Instead of relying on $$ to not collide with an existing path.
Quoting the Bash manual about $$:
> Expands to the process ID of the shell. In a () subshell, it expands
> to the process ID of the current shell, not the subshell.
So, this is different from $BASHPID:
> Expands to the process ID of the current bash process. This differs
> from $$ under certain circumstances, such as subshells that do not
> require bash to be re-initialized.
But even $BASHPID is prone to race conditions if the process IDs wrap
around, so to be on the safe side, we're using mktemp here.
Closes #3784 .
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-08-25 15:28:55 +02:00
Ryan Trinkle
a5e6027ece
Get rid of debugging output.
2014-08-24 16:27:44 -04:00
Ryan Trinkle
6142b27760
ghcjs working.
2014-08-23 15:00:13 -04:00
Michael Raskin
8ba5e6fa24
Merge pull request #3650 from bennofs/prefetch-git-human-readable
...
prefetch-git: output human-readable rev to stderr
2014-08-23 13:05:55 +04:00
Ryan Trinkle
df0e96175c
ghcjs is mostly working.
2014-08-21 14:56:04 -04:00
Vladimír Čunát
d4e9fd2a90
Merge recent master into staging
...
Hydra: ?compare=1148749
Conflicts (easy):
nixos/modules/virtualisation/containers.nix
2014-08-21 15:09:31 +02:00
Eelco Dolstra
a0c60b76ec
gcc: Revive the no-sys-dirs patch
...
For now, we don't NATIVE_SYSTEM_HEADER_DIR because it breaks the
build. However, it points to Glibc in the Nix store (not /usr/include)
so it's kind of okay.
2014-08-18 17:20:37 +02:00
Benno Fünfstück
ce3e86702f
prefetch-git: output human-readable rev to stderr
...
that way, the stdout stays compatible with nix-prefetch-{bzr,svn,hg}
2014-08-17 23:00:03 +02:00
Peter Simons
817c0e4144
cabal: enable multi-threaded builds with GHC 7.8.x or later
...
https://github.com/NixOS/nixpkgs/issues/3220
2014-08-17 00:20:12 +02:00
Peter Simons
462e067f45
cabal: cosmetic
2014-08-17 00:20:12 +02:00
Peter Simons
a9fad50181
cabal: minor code re-factoring of shleavy's patch that allows building packages without a Setup.hs file
...
https://github.com/NixOS/nixpkgs/pull/3585
2014-08-17 00:20:12 +02:00
Shea Levy
dc285e6895
cabal.mkDerivation: Use defaultMain if no Setup.{l,}hs exists.
...
This mirrors the default behaviour of cabal-install for the Simple build type
2014-08-16 00:13:14 -05:00
Patrick Mahoney
d314461278
Add http mirror for postgresql.
2014-08-14 19:17:26 +02:00
Daniel Peebles
a570251187
Make ant-build canonicalize the jars it produces so that we produce byte-for-byte identical jars (they normally contain timestamps and nondeterministic ordering of metadata lines)
2014-08-14 01:20:44 -04:00
Georges Dubus
ca0b0a68e8
Fixed deterministicness of fetchgit with leaveDotGit
...
The shebang of .git/hooks depended the git's bash, which made the result
depend of that bash's path.
2014-08-10 16:25:29 +02:00
Eelco Dolstra
05e81e0d9f
debian: Update to 6.0.10
2014-08-10 15:17:00 +02:00
Eelco Dolstra
a8fc68a5c0
Move share/{man,info,doc} to the corresponding output
2014-08-09 12:47:05 +02:00
Eelco Dolstra
9e31c66d1b
stdenv: Put moving docs to $out/share in a separate setup hook
2014-08-09 12:47:05 +02:00
Eelco Dolstra
e3f7dbbac8
Cleanup: Use += to append to envHooks
2014-08-09 12:47:05 +02:00
Eelco Dolstra
2def8e7499
Remove addHook
...
Just use bash arrays directly. I.e.
addHook preConfigure myPreConfigure
is now
preConfigureHooks+=(myPreConfigure)
2014-08-09 12:45:53 +02:00
Eelco Dolstra
15103e5e5f
stdenv: Remove the special handling of gcc
...
Now gcc is just another build input, making it possible in the future
to have a stdenv that doesn't depend on a C compiler. This is very
useful on NixOS, since it would allow trivial builders like
writeTextFile to work without pulling in the C compiler.
2014-08-09 12:44:50 +02:00
Eelco Dolstra
1a44dbbbb9
unpackFile: Always copy directories
...
If $src refers to a directory, then always copy it. Previously, we
checked the extension first, so if the directory had an extension like
.tar, unpackPhase would fail.
2014-08-09 12:44:49 +02:00
Eelco Dolstra
5e82aab5d4
Drop redundant space
2014-08-09 12:44:49 +02:00
Eelco Dolstra
daa66b8b1c
Factor out fixup phase stuff into separate setup hooks
2014-08-09 12:44:49 +02:00
Georges Dubus
f4fbcddd44
fetchgit: make deterministic with leaveDotGit ( close #3392 )
...
There was a few files containing timestamp, so we now remove them.
It shouldn't be a problem for logs. However, index might be. Anyway,
that's better than nothing.
2014-08-08 21:51:29 +02:00
Vladimír Čunát
52d9c93abe
Merge 'staging' into master
2014-08-08 20:13:23 +02:00
Eelco Dolstra
940eb8bfc1
debBuild: Allow setting the package name and overriding the install command
2014-08-08 14:15:43 +02:00
Peter Simons
b76a7504bb
cabal: cosmetic fix to syntax highlighting in Emacs
2014-08-04 12:39:11 +02:00
Eelco Dolstra
7f410ef923
Merge remote-tracking branch 'origin/master' into staging
...
Conflicts:
pkgs/misc/vim-plugins/default.nix
2014-07-22 11:00:00 +02:00
Michael Raskin
c38a11316d
Filter out broken-completely links
2014-07-18 17:42:00 +04:00
Shea Levy
b969e9340b
Separate fetchgitPrivate into a separate file
2014-07-16 18:05:56 -04:00
Eelco Dolstra
ff97b7dbe6
Merge remote-tracking branch 'origin/master' into staging
2014-07-14 17:04:55 +02:00
Shea Levy
b57bc220cc
Merge branch 'master' of git://github.com/ip1981/nixpkgs
...
Added quilt-0.63
2014-07-14 10:26:39 -04:00
Igor Pashev
26f47ba388
Fixed main Savannah mirror directory
2014-07-14 15:39:08 +02:00
Eelco Dolstra
1245ca3ff7
debian: Update to 7.6
2014-07-14 14:35:09 +02:00