about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2019-04-20cc-wrapper: make machine configuration configurableMatthew Bauer1-18/+18
It is useful to make these dynamic and not bake them into gcc. This means we don’t have to rebuild gcc to change these values. Instead, we will pass cflags to gcc based on platform values. This was already done hackily for android gcc (which is multi-target), but not for our own gccs which are single target. To accomplish this, we need to add a few things: - add ‘arch’ to cpu - add NIX_CFLAGS_COMPILE_BEFORE flag (goes before args) - set -march everywhere - set mcpu, mfpu, mmode, and mtune based on targetPlatform.gcc flags cc-wrapper: only set -march when it is in the cpu type Some architectures don’t have a good mapping of -march. For instance POWER architecture doesn’t support the -march flag at all! https://gcc.gnu.org/onlinedocs/gcc/RS_002f6000-and-PowerPC-Options.html#RS_002f6000-and-PowerPC-Options
2019-04-20release-cross: remove alpha-elf targetMatthew Bauer1-5/+0
This doesn’t appear to ever have worked. binutils doesn’t seem to support the alpha-elf target at all. It doesn’t make sense to keep this around. https://hydra.nixos.org/build/92403855/nixlog/1/tail
2019-04-19kernel-headers: infer ARCH from config tripleMatthew Bauer1-0/+7
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-19systems: correct qemu architecturesMatthew Bauer1-3/+2
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-19systems: fix emulator identityMatthew Bauer1-1/+1
Squashed to fix shell quoting, thanks @Ericson2314
2019-04-19systems/parse.nix: fixup arm compatibilitiesMatthew Bauer1-13/+33
2019-04-18Merge master into staging-nextFrederik Rietdijk2-4/+6
2019-04-17lib.converge: optimiseAlyssa Ross1-3/+6
2019-04-16androidndk-pkgs: Remove -mfloat flagKen Micklas1-1/+0
2019-04-16Merge staging-next into stagingFrederik Rietdijk2-4/+3
2019-04-15Merge pull request #59369 from Ekleog/unique-fixEelco Dolstra1-2/+1
lib: improve the implementation of the unique function
2019-04-14Merge pull request #58815 from Infinisil/fix/cleanSource/git-worktreeSilvan Mosberger1-2/+2
lib.cleanSourceFilter: Filter all .git, not just directories
2019-04-12lib: improve the implementation of the unique functionLéo Gaspard1-2/+1
2019-04-11Merge staging-next into stagingFrederik Rietdijk2-18/+0
2019-04-10systems: remove android armv5te platformMatthew Bauer1-10/+0
this isn’t useful any more because the ndk we use no longer supports it.
2019-04-10androidndk: fixup messMatthew Bauer1-8/+0
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-09python: Make .isPyPy flag more accurate.Corbin1-1/+1
nix-repl> map (s: s.isPyPy) [ python python3 pypy pypy3 ] [ false false true true ]
2019-04-08lib.cleanSourceFilter: Filter all .git, not just directoriesSilvan Mosberger1-2/+2
In the case of a worktree created with `git worktree add`, .git is actually a file with contents pointing to the original repository.
2019-04-05Merge branch 'master' into stagingJan Tojnar5-1/+9
2019-04-02Merge branch 'master' into staging-nextVladimír Čunát5-1/+9
Hydra nixpkgs: ?compare=1512490
2019-03-29Merge pull request #58330 from AerialX/msp430John Ericson4-0/+8
TI MSP430 cross compiling
2019-03-29lib: lists: Alias builtins.mapMatthias Beyer1-1/+1
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Suggested-by: Profpatsch <mail@profpatsch.de>
2019-03-25msp430: include vendor headers with stdenvAaron Lindsay1-0/+1
2019-03-25systems: support TI MSP430 microcontrollersAaron Lindsay3-0/+7
2019-03-23Merge master into staging-nextFrederik Rietdijk1-1/+1
2019-03-21Merge remote-tracking branch 'origin/master' into stagingWael M. Nasreddine1-1/+1
* origin/master: (693 commits) buildGoModule: use go_1_12 instead of go_1_11 (#58103) gitAndTools.lab: 0.15.2 -> 0.15.3 (#58091) signal-desktop: 1.22.0 -> 1.23.0 added missing semicolon to documentation terminus_font_ttf: 4.46.0 -> 4.47.0 buildGoModule: remove SSL env vars in favor of cacert in buildInputs (#58071) dav1d: init at 0.2.1 dropbox-cli: 2018.11.28 -> 2019.02.14 atlassian-confluence: 6.14.1 -> 6.14.2 maintainers: update email for dywedir python.pkgs.hglib: use patch to specify hg path (#57926) chkrootkit: 0.52 -> 0.53 radare2-cutter: 1.7.2 -> 1.8.0 autorandr: 1.7 -> 1.8 pythonPackages.pyhepmc: fix build llvm-polly/clang-polly: use latest llvm apulse: 0.1.11.1 -> 0.1.12, cleanup factorio: experimental 0.17.14 → 0.17.16 (#58000) sequeler: 0.6.7 -> 0.6.8 nasc: 0.5.1 -> 0.5.2 ...
2019-03-18Doc fix: use correct function name in type signature for concatIMapStringsSepNathan van Doorn1-1/+1
2019-03-10Merge branch 'master' into staging-nextVladimír Čunát5-7/+26
Hydra nixpkgs: ?compare=1508887
2019-03-08lib: add `showWarnings`Jan Malakhovski2-2/+3
2019-03-07module system: revert "remove types.optionSet", just deprecate (#56857)Danylo Hlynskyi3-4/+22
The explicit remove helped to uncover some hidden uses of `optionSet` in NixOps. However it makes life harder for end-users of NixOps - it will be impossible to deploy 19.03 systems with old NixOps, but there is no new release of NixOps with `optionSet` fixes. Also, "deprecation" process isn't well defined. Even that `optionSet` was declared "deprecated" for many years, it was never announced. Hence, I leave "deprecation" announce. Then, 3 releases after announce, we can announce removal of this feature. This type has to be removed, not `throw`-ed in runtime, because it makes some perfectly fine code to fail. For example: ``` $ nix-instantiate --eval -E '(import <nixpkgs/lib>).types' --strict trace: `types.list` is deprecated; use `types.listOf` instead error: types.optionSet is deprecated; use types.submodule instead (use '--show-trace' to show detailed location information) ```
2019-03-05lib: optionAttrSetToDocList: warn instead of throwing on options without ↵Jan Malakhovski1-1/+1
descriptions For convenience, it's not like not having a description is deadly or something.
2019-03-01Merge staging-next into stagingFrederik Rietdijk3-4/+67
2019-02-26Merge pull request #56197 from matthewbauer/cross-fixes3Matthew Bauer1-1/+1
Android and related cross fixes
2019-02-26cross/tests: add llvm-based testsMatthew Bauer1-1/+1
2019-02-26Merge pull request #56393 from matthewbauer/is-compatibleMatthew Bauer2-2/+65
systems: add isCompatible handling
2019-02-26netbsd: add cross targetMatthew Bauer2-0/+8
2019-02-25systems: add “emultator” for wasmMatthew Bauer1-0/+2
v8 can run any wasm bytecode
2019-02-2519.09 is Loris.Linus Heckemann1-1/+1
https://en.wikipedia.org/wiki/Loris
2019-02-24mesa: armv7a-linux supports mesaMatthew Bauer1-1/+1
2019-02-24Merge pull request #55488 from winpat/add_dirvishxeji1-0/+5
dirvish: init at 1.2.1
2019-02-23Merge pull request #54528 from cdepillabout/module-alias-uses-prioritySilvan Mosberger5-16/+16
lib/modules: Change mkAliasOptionModule to use the priority for the alias
2019-02-21systems: add isCompatible handlingMatthew Bauer2-2/+63
2019-02-20alpha-embedded: isAlpha code Added (#56090)Vincent Weisner1-0/+1
Adds isAlpha to stdenv.<platform> flags.
2019-02-16Merge master into staging-nextFrederik Rietdijk1-1/+1
2019-02-13Merge pull request #55129 from oxij/tree/move-defaults-to-package-filesMichael Raskin1-1/+1
all-packages.nix: move defaults to package files
2019-02-09lib.licenses: add Open Software License 2.0Patrick Winter1-0/+5
2019-02-07Fix the documentation for the tests to reflect what is actually happening.(cdep)illabout2-2/+8
2019-02-03lib: tiny cleanupJan Malakhovski1-1/+1
2019-02-01Merge branch 'staging-next' into stagingVladimír Čunát5-86/+32
2019-02-01Merge branch 'master' into staging-nextVladimír Čunát5-86/+32
Comments on conflicts: - llvm: d6f401e1 vs. 469ecc70 - docs for 6 and 7 say the default is to build all targets, so we should be fine - some pypi hashes: they were equivalent, just base16 vs. base32