summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* treewide: remove unused variables (#63177)volth2019-06-16
| | | | | | * treewide: remove unused variables * making ofborg happy
* Merge pull request #62712 from danbst/module-conflict-namingDanylo Hlynskyi2019-06-13
|\ | | | | NixOS module system: improve one of error messages
| * module system: prettify a bit error when unique option defined twicedanbst2019-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error can be reproduced like: ``` $ nix-instantiate ./nixos -A system --arg configuration ' { fileSystems."/".device = "nodev"; boot.loader.grub.devices = [ "nodev" ]; containers.t.config.imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ]; }' ``` Previously error was: ``` error: The unique option `containers.t.networking.hostName' is defined multiple times, in `/nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos/modules/virtualisation/amazon-image.nix' and `module at /home/danbst/dev/nixpkgs/nixos/modules/virtualisation/containers.nix:470'. (use '--show-trace' to show detailed location information) ``` Now it is: ``` error: The unique option `containers.t.networking.hostName' is defined multiple times, in: - /nix/var/nix/profiles/per-user/root/channels/nixpkgs/nixos/modules/virtualisation/amazon-image.nix - module at /home/danbst/dev/nixpkgs/nixos/modules/virtualisation/containers.nix:470. (use '--show-trace' to show detailed location information) ``` Related: https://github.com/NixOS/nixpkgs/issues/15747
* | licenses: refer to libpng2 using spdxOrivej Desh2019-06-12
| | | | | | | | https://spdx.org/licenses/libpng-2.0.html
* | licenses: fix LGPL 2.1 full nameOrivej Desh2019-06-06
| |
* | systems: fix lib-testsMatthew Bauer2019-06-04
| | | | | | | | | | These were broken by the added system doubles. This just adds those to the lib-tests.
* | systems: fixup from last commitMatthew Bauer2019-06-04
| | | | | | | | it’s powerpc-none not ppc-none
* | systems: add missing doublesMatthew Bauer2019-06-04
| | | | | | | | | | | | | | | | | | in https://github.com/NixOS/nixpkgs/pull/60349, the attr handling was removed. This means we rely on these double values for determing what we are compatible with. This adds some of the missing doubles to this list. https://hydra.nixos.org/eval/1523389#tabs-removed
* | Merge pull request #60349 from matthewbauer/fix-60345Matthew Bauer2019-06-04
|\ \ | |/ |/| check-meta: use system tuple in platforms
| * systems: allow passing in string for cross/localSystemMatthew Bauer2019-06-04
| | | | | | | | | | | | This makes things a little bit more convenient. Just pass in like: $ nix-build ’<nixpkgs>’ -A hello --argstr localSystem x86_64-linux --argstr crossSystem aarch64-linux
| * systems: remove forMetaMatthew Bauer2019-06-04
| | | | | | | | This is unused now.
| * systems: add riscv doubleMatthew Bauer2019-04-30
| | | | | | | | This was never listed in doubles.nix! Not sure why?
| * check-meta: use system tuple in platformsMatthew Bauer2019-04-30
| | | | | | | | Fixes #60345
* | Merge pull request #60406 from JohnAZoidberg/remove-isnullRobin Gloster2019-05-18
|\ \ | | | | | | treewide: Remove usage of isNull
| * | treewide: Remove usage of isNullDaniel Schaefer2019-04-29
| | | | | | | | | | | | isNull "is deprecated; just write e == null instead" says the Nix manual
* | | Adds pkgsCross.gnu32 and pkgsCross.gnu64 platformsLionello Lunesu2019-05-05
| |/ |/|
* | Merge master into staging-nextFrederik Rietdijk2019-04-27
|\|
| * lib.licences: Add CC-BY-NC-3.0Mario Rodas2019-04-24
| |
* | tests/systems: fix testsMatthew Bauer2019-04-25
| |
* | Merge pull request #56555 from matthewbauer/wasmMatthew Bauer2019-04-23
|\ \ | | | | | | Initial WebAssembly/WASI cross-compilation support
| * | wasmtime: init and use for emulationMatthew Bauer2019-04-23
| | | | | | | | | | | | | | | This isn’t really an "emulator" but it’s the closest concept we have right now.
| * | wasm: don’t assume muslMatthew Bauer2019-04-23
| | |
| * | wasm: init cross targetMatthew Bauer2019-04-23
| |/ | | | | | | | | | | | | | | | | Adds pkgsCross.wasm32 and pkgsCross.wasm64. Use it to build Nixpkgs with a WebAssembly toolchain. stdenv/cross: use static overlay on isWasm isWasm doesn’t make sense dynamically linked.
* / cc-wrapper: make machine configuration configurableMatthew Bauer2019-04-20
|/ | | | | | | | | | | | | | | | | | | | | | 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
* release-cross: remove alpha-elf targetMatthew Bauer2019-04-20
| | | | | | | | 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
* kernel-headers: infer ARCH from config tripleMatthew Bauer2019-04-19
| | | | | | | 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
* systems: correct qemu architecturesMatthew Bauer2019-04-19
| | | | | | | 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.
* systems: fix emulator identityMatthew Bauer2019-04-19
| | | | Squashed to fix shell quoting, thanks @Ericson2314
* systems/parse.nix: fixup arm compatibilitiesMatthew Bauer2019-04-19
|
* Merge master into staging-nextFrederik Rietdijk2019-04-18
|\
| * lib.converge: optimiseAlyssa Ross2019-04-17
| |
| * androidndk-pkgs: Remove -mfloat flagKen Micklas2019-04-16
| |
* | Merge staging-next into stagingFrederik Rietdijk2019-04-16
|\|
| * Merge pull request #59369 from Ekleog/unique-fixEelco Dolstra2019-04-15
| |\ | | | | | | lib: improve the implementation of the unique function
| | * lib: improve the implementation of the unique functionLéo Gaspard2019-04-12
| | |
| * | Merge pull request #58815 from Infinisil/fix/cleanSource/git-worktreeSilvan Mosberger2019-04-14
| |\ \ | | |/ | |/| lib.cleanSourceFilter: Filter all .git, not just directories
| | * lib.cleanSourceFilter: Filter all .git, not just directoriesSilvan Mosberger2019-04-08
| | | | | | | | | | | | | | | In the case of a worktree created with `git worktree add`, .git is actually a file with contents pointing to the original repository.
* | | Merge staging-next into stagingFrederik Rietdijk2019-04-11
|\| |
| * | systems: remove android armv5te platformMatthew Bauer2019-04-10
| | | | | | | | | | | | this isn’t useful any more because the ndk we use no longer supports it.
| * | androidndk: fixup messMatthew Bauer2019-04-10
| | | | | | | | | | | | | | | | | | | | | 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.
| * | Merge branch 'master' into staging-nextVladimír Čunát2019-04-02
| |\| | | | | | | | | | Hydra nixpkgs: ?compare=1512490
| * | Merge master into staging-nextFrederik Rietdijk2019-03-23
| |\ \
* | | | python: Make .isPyPy flag more accurate.Corbin2019-04-09
| | | | | | | | | | | | | | | | | | | | nix-repl> map (s: s.isPyPy) [ python python3 pypy pypy3 ] [ false false true true ]
* | | | Merge branch 'master' into stagingJan Tojnar2019-04-05
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge pull request #58330 from AerialX/msp430John Ericson2019-03-29
| |\ \ \ | | | | | | | | | | TI MSP430 cross compiling
| | * | | msp430: include vendor headers with stdenvAaron Lindsay2019-03-25
| | | | |
| | * | | systems: support TI MSP430 microcontrollersAaron Lindsay2019-03-25
| | | |/ | | |/|
| * / | lib: lists: Alias builtins.mapMatthias Beyer2019-03-29
| |/ / | | | | | | | | | | | | Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Suggested-by: Profpatsch <mail@profpatsch.de>
* | / Merge remote-tracking branch 'origin/master' into stagingWael M. Nasreddine2019-03-21
|\| | | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 ...
| * Doc fix: use correct function name in type signature for concatIMapStringsSepNathan van Doorn2019-03-18
| |