Commit Graph
100 Commits
Author SHA1 Message Date
Matthew Bauer d8934feba1 kernel-headers: infer ARCH from config triple
This makes us less reliant on the systems/examples.nix. You should be
able to cross compile with just your triple:

$ nix build --arg crossSystem '{ config = "armv6l-unknown-linux-gnueabi"; }' stdenv
2019-04-19 14:53:48 -04:00
Matthew Bauer 97a3c7f5a3 top-level/impure.nix: expose crossOverlays 2019-04-19 12:03:56 -04:00
Matthew Bauer 5eea658778 systems: correct qemu architectures
ppc64le and ppc64 are different targets in the configure script. We
can’t use the same one.

TODO: canonicalize similar ones based on qemu’s configure script.
2019-04-19 12:03:56 -04:00
Matthew Bauer 23560ea057 systems: fix emulator identity
Squashed to fix shell quoting, thanks @Ericson2314
2019-04-19 12:03:44 -04:00
Matthew Bauer dd584d8eeb stdenv/linux: use isCompatible to find bootstrap tools
This avoids part of the issue where things like armv7a don’t work
because the system doesn’t realize it can use the armv7l bootstrap
tools.
2019-04-19 12:00:44 -04:00
Matthew Bauer 59bb1dcbfb systems/parse.nix: fixup arm compatibilities 2019-04-19 12:00:32 -04:00
Matthew Bauer 65f2b0a2a3 spidermonkey: fix host, target settings
spidermonkey doesn’t use the autotools build, host, target convention.
Instead it considers ‘--host’ to be the autotools’ ‘--build’ and
‘--target’ to be the autotools’ ‘--host’! As a result, we cannot
safely use “configurePlatforms”. Instead, we must manually set these
flags.

/cc @illegalprime
2019-04-19 11:59:39 -04:00
Matthew Bauer fb3df59c6b aws-c-common: add libexecinfo on musl
Fixes #56106
2019-04-19 11:52:39 -04:00
Matthew Bauer f0cba0b3f3 Merge pull request #56406 from TomSmeets/emscripten-1_38_28
emscripten: 1.37.36 -> 1.38.28
2019-04-18 10:52:49 -04:00
Matthew Bauer d0da672b0e Merge pull request #59787 from delroth/strip-glibc
glibc: re-enable stripping in cross builds
2019-04-17 16:07:40 -04:00
Matthew Bauer d96a566cd5 Merge pull request #59743 from obsidiansystems/km-remove-androidndk-mfloat-flag
androidndk-pkgs: Remove -mfloat flag
2019-04-16 17:56:46 -04:00
Matthew Bauer f7776ce336 emacs-mac: 26.1 -> 26.2 2019-04-16 15:15:03 -04:00
Matthew Bauer f475aeaf29 Merge pull request #59535 from matthewbauer/homepage-fixes
treewide: update homepages to https where available
2019-04-15 20:47:30 -04:00
Matthew Bauer 7d0db6af7e Merge pull request #59551 from matthewbauer/busybox-clang-cross
busybox: add patch to allow cross in llvm
2019-04-15 11:24:09 -04:00
Matthew Bauer 290a5d916e treewide: update homepages to https where available
Based on "problems" from repology:

https://repology.org/repository/nix_unstable/problems

Mostly simple changes to reflect redirects.
2019-04-15 10:10:05 -04:00
Matthew Bauer 3bf69b1e40 busybox: add patch to allow cross in llvm
Fixes #57670

$ nix build -f. --arg crossSystem '{ config = "aarch64-unknown-linux-musl"; useLLVM = true; }' busybox
2019-04-14 22:03:33 -04:00
Matthew Bauer 7edf2db0fd Merge pull request #59338 from matthewbauer/llvm-libc++
llvm8: support c++ in cross case
2019-04-12 14:09:00 -04:00
Matthew Bauer d453273fbf llvm8: support c++ in cross case
this adds libc++ to the LLVM cross, giving us access to the full
Nixpkgs set. This requires 4 stages of wrapped compilers:

- Clang with no libraries
- Clang with just compiler-rt
- Clang with Libc, and compiler-rt
- Clang with Libc++, Libc, and compiler-rt
2019-04-11 21:28:51 -04:00
Matthew Bauer d95c4d799c Merge pull request #59294 from matthewbauer/clang8-fix-darwin
clang8: apply patch to disable xpc
2019-04-11 13:39:59 -04:00
Matthew Bauer 28d83343a3 Merge pull request #58625 from xzfc/aria2
aria2: Add sphinx build dependency to generate man pages
2019-04-11 01:03:43 -04:00
Matthew Bauer 097122d2fd clang8: apply patch to disable xpc 2019-04-10 22:42:01 -04:00
Matthew Bauer 51be4c6f32 Merge pull request #59278 from veprbl/pr/netbsd_darwin_fix
netbsd.mkDerivation: fix darwin build
2019-04-10 20:39:58 -04:00
Matthew Bauer ac491d2df7 systems: remove android armv5te platform
this isn’t useful any more because the ndk we use no longer supports it.
2019-04-10 01:55:09 -04:00
Matthew Bauer 3463e6ad17 static: remove libjpeg static override
it is not necessary
2019-04-10 01:46:00 -04:00
Matthew Bauer 4aca600624 Merge pull request #59024 from matthewbauer/hackage-mirrors
haskell: add fpcomplete mirror, use hackage mirrors in more places
2019-04-10 01:45:04 -04:00
Matthew Bauer 67e6e031e1 readline: add android patch 2019-04-10 01:30:34 -04:00
Matthew Bauer 589c2c2870 androidndk: fixup mess
New android ndk (18) now uses clang. We were going through the wrapper
that are provided. This lead to surprising errors when building.
Ideally we could use the llvm linker as well, but this leads to errors
as many packages don’t support the llvm linker.
2019-04-10 01:30:34 -04:00
Matthew Bauer a79a8f29bc waf: use wafConfigureFlags for waf flags
This avoids the potential conflict between autoconf flags and the waf
flags. There is some overlap between the two but waf errors when it
doesn’t recognize the flag.
2019-04-09 23:44:37 -04:00
Matthew Bauer 82b8393bc4 tk: use aqua backend on darwin
Most users don’t have xquartz, so let’s use the default window system
for macOS.
2019-04-09 21:44:38 -04:00
Matthew Bauer 33a259a11b Merge pull request #59138 from NixOS/writeTextFile-fix-comment
trivial-builders: Fix outdated comment on writeTextFile
2019-04-07 22:16:45 -04:00
Matthew Bauer 6eb0e1a2a9 Merge pull request #59069 from delroth/nilfs-utils-cross
nilfs-utils: fix cross-compilation issue caused by AC_FUNC_MALLOC
2019-04-07 17:53:52 -04:00
Matthew Bauer 5541559635 fuse3: use /etc/fuse.conf for configuration (#59043)
We don’t want the config file to be read only and in the Nix store.
2019-04-07 23:00:51 +02:00
Matthew Bauer eaa5e85b35 haskell: add more hackage mirrors, use mirrors in more places
Fixes #58971
2019-04-05 13:51:56 -04:00
Matthew Bauer a909bb4901 Merge pull request #58972 from witkamp/master
gcc-arm-embedded: add darwin support
2019-04-05 13:19:37 -04:00
Matthew Bauer 4585f6d11b Merge pull request #58958 from tadeokondrak/lldb-vscode
lldb: install vscode plugin; vscode-extensions: add it
2019-04-05 01:11:45 -04:00
Matthew Bauer f718a12c26 Merge pull request #58977 from illegalprime/writeShellScriptBin-cross
writeShellScriptBin: use build-time shell in check phase
2019-04-04 14:40:16 -04:00
Matthew Bauer 6da1a83d4d ghc8.6.4: use targetPackages for getting libffi 2019-04-03 16:45:59 -04:00
Matthew Bauer f0a6725bdc Merge pull request #58848 from tadfisher/android-studio-unwrapped
android-studio: add "unwrapped" passthru attr
2019-04-03 11:52:24 -04:00
Matthew Bauer 45dbb34640 Merge pull request #58472 from thefloweringash/emacs-x-darwin
emacs: only use patchelf on linux
2019-03-28 17:02:21 -04:00
Matthew Bauer e8c84d3449 Merge pull request #58283 from dylex/bootzlib
fetchurl: use fetchurlBoot for zlib deps
2019-03-26 14:13:18 -04:00
Matthew Bauer 2a3167c8c0 Merge pull request #57461 from booxter/turses
turses: fix crash when starting with existing config file
2019-03-26 11:44:58 -04:00
Matthew Bauer 2924563f88 Merge pull request #57925 from rnhmjoj/ifnames-fix
nixos/tests/predictable-interfaces: fix failure on aarch64
2019-03-25 22:23:11 -04:00
Matthew Bauer 4cbb9b840b Merge pull request #57905 from LinArcX/vazir-fonts
vazir-fonts: init at 19.2.0
2019-03-25 22:22:18 -04:00
Matthew Bauer 127c1b19b3 Merge pull request #57872 from BadDecisionsAlex/patch-3
ecdsatool: init at 0.0.1
2019-03-25 22:20:21 -04:00
Matthew Bauer 5d173c9ee2 Merge pull request #57750 from tomfitzhenry/remove-freetype-from-adoptopenjdk
Remove libfreetype.so from adoptopenjdk's derivation.
2019-03-25 22:19:16 -04:00
Matthew Bauer 810f2ba1f3 Merge pull request #57758 from midchildan/add-mediasdk
intel-media-sdk: init at 18.4.1
2019-03-25 22:18:23 -04:00
Matthew Bauer 38c6c7c8a3 Merge pull request #57617 from aaronjanse/patch-20190313a
nixos/manual: clarify declarative packages section
2019-03-25 22:16:47 -04:00
Matthew Bauer d468f4b27e Merge pull request #57139 from delroth/firewall-dedup
nixos/firewall: canonicalize ports lists
2019-03-25 22:15:17 -04:00
Matthew Bauer b332d66ce4 Merge pull request #56906 from stephengroat/terraform-providers.ansible
terraform-providers.ansible: init at 0.0.4
2019-03-25 22:07:44 -04:00
Matthew Bauer 14e9703558 Merge pull request #56950 from rvolosatovs/update/gocode-gomod
gocode-gomod: 2018-10-16 -> 2019-02-12
2019-03-25 22:06:06 -04:00
Matthew Bauer 1ca86b4056 Merge pull request #58047 from illegalprime/libndctl-cross
libndctl: use buildPackages.which
2019-03-25 22:01:00 -04:00
Matthew Bauer 38a89c8653 Merge pull request #58313 from arcnmx/gcc-8-cross
gcc: fix gcc8 for cross-compiled targets
2019-03-25 21:57:48 -04:00
Matthew Bauer 5f32434aef Merge pull request #58246 from danbst/infinite-recursion-otherPackageSets
pkgsMusl, pkgsi686Linux, pkgsStatic: fix infinite recursion with overlays
2019-03-25 12:05:07 -04:00
Matthew Bauer ed9d1ea639 Merge pull request #58086 from corpix/fix/doc/wireless-semicolon
added missing semicolon to documentation
2019-03-21 19:56:32 -04:00
Matthew Bauer 73be6fba8b Merge pull request #54625 from FlorianFranzen/efi32
grub: Support 32bit EFI on 64bit platforms
2019-03-21 11:39:45 -04:00
Matthew Bauer b59aac0656 Merge pull request #57814 from illegalprime/fix/mg-cross
mg: use build system pkg-config
2019-03-21 10:17:23 -04:00
Matthew Bauer 0bf5c6acb4 Merge pull request #57820 from illegalprime/fix/tree-cross
tree: use $CC instead of cc to build
2019-03-19 17:48:56 -04:00
Matthew Bauer d3dd0875ed Merge pull request #56226 from marsam/nodejs-install-npm-manpages
nodejs: Install npm manpages
2019-03-15 15:32:10 -04:00
Matthew Bauer 6d52e26818 Merge pull request #56792 from timor/libdwarf-dwarfdump-zlib
libdwarf: add zlib to buildInputs
2019-03-15 15:28:47 -04:00
Matthew Bauer e731321499 Merge pull request #57713 from deliciouslytyped/patch-1
Add word `debug(ging)` to breakpointHook description for discoverability
2019-03-15 15:16:53 -04:00
Matthew Bauer b703c4d998 plasma5: fix typo from pr #57037
Thanks @Yarny0
2019-03-14 14:09:13 -04:00
Matthew Bauer 92ec809473 Merge pull request #56686 from r-ryantm/auto-update/gorm
gnustep.gorm: 1.2.23 -> 1.2.24
2019-03-14 00:18:28 -04:00
Matthew Bauer 573a6930a0 Merge pull request #56019 from illegalprime/fix/perlPackages.TermReadKey-cross
perlPackages.TermReadKey: add workarounds for cross compilation
2019-03-12 16:52:13 -04:00
Matthew Bauer 7890494813 Merge pull request #57037 from matthewbauer/remove-xdg-desktop-menu-dummy
plasma: handle kbuildsycoca5 better
2019-03-11 22:58:40 -04:00
Matthew Bauer 37eba81c7b Merge pull request #56391 from matthewbauer/cmake-treewide
Add more CMake flags
2019-03-11 12:43:46 -04:00
Matthew Bauer 6ed49262f5 treewide: remove BUILD_TESTING flag
This is now set by CMake
2019-03-11 10:11:28 -04:00
Matthew Bauer 1e7bac9401 xcode-sdk-pkgs: add sdk to extraPackages
this gives you access to libraries like Foundation.
2019-03-09 18:12:25 -05:00
Matthew Bauer ca6e93155b Merge pull request #56661 from matthewbauer/stack-hook-fixup
stack-hook: deduplicate better
2019-03-09 18:08:47 -05:00
Matthew Bauer 8a08d7e7cc Merge pull request #56031 from matthewbauer/priorities
Add some more priorities
2019-03-09 18:02:55 -05:00
Matthew Bauer 91f0c848f4 cmake: set BUILD_TESTING=OFF when doCheck is false
This means we can avoid building test suites that will never be run.
2019-03-09 14:32:55 -05:00
Matthew Bauer a923a5bbdc ova: remove stateVersion
This is undefined in the default configuration.nix template.
2019-03-09 14:25:05 -05:00
Matthew Bauer 393b359f13 plasma: handle ksycoca5 better
- Remove xdg-desktop-menu-dummy.menu kbuildsycoca5. Not sure why we
  need it but it is a pretty big failure if it exists.
  See issue #56176.

- plasma: clear ksycoca cache before building

  This is needed to pick up on software removed since the last cache
  update. Otherwise it hangs around as zombies forever (or until the
  cache is cleared).

- Add the above + the icon cache cleanup to plasmaSetup

  This will be run for the logged in user on each nixos-rebuild.
  Unfortunately this only works if you are managing software through
  nixos-rebuild (nix-env users need to run this manually, otherwise
  log out and log back in).
2019-03-07 15:11:04 -05:00
Matthew Bauer 5bc72b87b1 Merge pull request #52714 from furrycatherder/gitea-pam
gogs, gitea: add PAM support
2019-03-06 10:05:11 -05:00
Matthew Bauer 1f212565d2 ghc863: dont add extra libs
Don’t add -liconv to LDFLAGS automatically so that GHC will add it itself.

Merged in pull request #56795 from @matthewbauer.
2019-03-05 11:13:52 +01:00
Matthew Bauer 71704e8129 Merge pull request #55081 from moyamo/fix-subdirs.el
Link subdirs.el into emacs-packages-deps site-lisp
2019-03-04 16:12:41 -05:00
Matthew Bauer 7874ca5b61 Merge pull request #56645 from matthewbauer/llvm-8
llvm8: init
2019-03-03 21:00:36 -05:00
Matthew Bauer b0799b4219 Merge pull request #56115 from matthewbauer/nixos-rebuild-upgrade-nix
nixos-rebuild: try to get Nix fallback from new channel first
2019-03-02 18:48:28 -05:00
Matthew Bauer 1487031b23 Merge pull request #56660 from matthewbauer/cairo-fix-deps
cairo: use buildInputs for libraries
2019-03-02 18:46:39 -05:00
Matthew Bauer 71f189f26f stack-hook: deduplicate better
No need to check for duplicates as it is now handled by setup.sh
deduplication. Also should use targetOffset here instead of hostOffset
because we are using stack-hook natively.
2019-03-02 02:21:32 -05:00
Matthew Bauer 1d4efdc109 cairo: use buildInputs for libraries 2019-03-02 02:17:21 -05:00
Matthew Bauer 52cb072562 llvm8: init 2019-03-01 23:42:10 -05:00
Matthew Bauer 9edb851308 Merge pull request #51628 from ju1m/arm
stdenv: add armv7a-linux system
2019-03-01 15:36:07 -05:00
Matthew Bauer 5dee926eb9 nixos/no-x-libs.nix: override pinentry directly
This is more specific and we avoid having gtk or qt libraries come in at all.
2019-02-27 23:53:50 -05:00
Matthew Bauer fa5ab50753 Merge pull request #56502 from delroth/llvm7-compiler-rt
llvm/7/compiler-rt: define CMAKE_*_COMPILER_TARGET unconditionally
2019-02-27 22:49:28 -05:00
Matthew Bauer ee35de1861 llvm7: build with gcc6 on 32-bit linux
Need to use buildPackages.stdenv.cc.isGNU to avoid infinite recursion.
We probably need a better way to handle this.

Fixes #56457
2019-02-27 10:21:37 -05:00
Matthew Bauer 3a4d497a6f Merge pull request #55750 from matthewbauer/llvm-cross
Allow using LLVM for cross compilation toolchain
2019-02-26 21:53:19 -05:00
Matthew Bauer 5c46f77249 Merge pull request #56197 from matthewbauer/cross-fixes3
Android and related cross fixes
2019-02-26 20:30:53 -05:00
Matthew Bauer 8e25da0beb cross/tests: add llvm-based tests 2019-02-26 19:46:24 -05:00
Matthew Bauer b86e62d30d llvm: support cross compilation with useLLVM flag
You can build (partially) with LLVM toolchain using the useLLVM flag.
This works like so:

  nix-build -A hello --arg crossSystem '{ system =
    "aarch64-unknown-linux-musl"; useLLVM = true }'

also don’t separate debug info in lldClang

It doesn’t work currently with that setup hook. Missing build-id?
2019-02-26 19:45:35 -05:00
Matthew Bauer 77d7d60d8c libpfm: use hostPlatform
(cherry picked from commit 08f5b419b9efc77db044f8c1d725632552617966)
2019-02-26 19:45:35 -05:00
Matthew Bauer ead13a3aca llvm: don’t use targetPlatform
LLVM should be target independent because it will work with all
machine types. This is different from GCC where it needs to know what
target to build ahead of time.
2019-02-26 19:45:35 -05:00
Matthew Bauer dd94b0724c Merge pull request #56421 from Ericson2314/pinenty-dedup
pinentry: Use lib.string.{enable,with}Feature to avoid duplication
2019-02-26 17:31:03 -05:00
Matthew Bauer 0436f72733 Merge pull request #56436 from asymmetric/patch-4
doc/cross-compilation: fix typo
2019-02-26 16:58:20 -05:00
Matthew Bauer 51d6b8460a Merge pull request #55023 from matthewbauer/netbsd
NetBSD cross compiling
2019-02-26 16:39:20 -05:00
Matthew Bauer 3c8b75f536 Merge pull request #56393 from matthewbauer/is-compatible
systems: add isCompatible handling
2019-02-26 16:39:08 -05:00
Matthew Bauer 85536e892b bintools-wrapper: fix unknown emulation error message
Using the + operator with throw doesn’t seems to work properly. You
need to use antiquotes here to get the targetPlatform config included.
2019-02-26 15:55:48 -05:00
Matthew Bauer 20a4bbe23b systems: add “emultator” for wasm
v8 can run any wasm bytecode
2019-02-25 20:07:43 -05:00
Matthew Bauer 55fc5b54ee vagrant: only use libvirt on linux
Fixes #55751
2019-02-25 16:50:54 -05:00
Matthew Bauer 0500ca4ef4 Merge pull request #56284 from matthewbauer/libglvnd-fix-darwin
libglvnd: fix darwin
2019-02-25 13:39:29 -05:00
Matthew Bauer 73061742af Merge remote-tracking branch 'NixOS/master' into staging 2019-02-24 18:54:32 -05:00