Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4179ba049cf1
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1a1a7ed26652
Choose a head ref

Commits on Aug 3, 2019

  1. man: use man-db everywhere

    man-db now works correctly on Darwin, so let’s make things more
    consistent and use it there as well.
    matthewbauer committed Aug 3, 2019
    Copy the full SHA
    8879448 View commit details

Commits on Aug 5, 2019

  1. openldap: 2.4.47 -> 2.4.48

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/openldap/versions
    r-ryantm committed Aug 5, 2019
    Copy the full SHA
    8ba8325 View commit details

Commits on Aug 14, 2019

  1. at-spi2-core: provide fallback dbus_daemon manually

    This point directly to the NixOS current-system. This is necessary to
    avoid creating a direct dependency on DBUS and increasing every app’s
    runtime closure. Luckily, dbus_daemon is only used for the case when
    dbus is not running and users can always run the dbus-daemon
    themselves if it cannot be found.
    matthewbauer committed Aug 14, 2019
    Copy the full SHA
    f6260a3 View commit details

Commits on Aug 15, 2019

  1. Copy the full SHA
    3c39b47 View commit details
  2. man-db: 2.7.5 -> 2.8.6.1

    matthewbauer committed Aug 15, 2019
    Copy the full SHA
    77b40af View commit details
  3. Copy the full SHA
    4327a96 View commit details

Commits on Aug 17, 2019

  1. setup.sh introduce isELFExec, isELFDyn

    These can be used to determine whether a ELF file with ELF header is an
    executable or shared library.
    
    We can't implement it in pure bash, as bash has problems with null
    bytes.
    flokli committed Aug 17, 2019
    Copy the full SHA
    e1b80a5 View commit details
  2. wrapQtAppsHook: use isELFExec

    This ensures we only wrap executables, not shared libraries
    flokli committed Aug 17, 2019
    Copy the full SHA
    88146a0 View commit details
  3. libsepol: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    ca2b246 View commit details
  4. libselinux: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    0278e83 View commit details
  5. selinux-sandbox: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    d09152c View commit details
  6. selinux-python: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    5620d98 View commit details
  7. semodule-utils: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    5c1db35 View commit details
  8. libsemanage: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    41b4342 View commit details
  9. policycoreutils: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    563bb46 View commit details
  10. checkpolicy: 2.7 -> 2.9

    lblasc committed Aug 17, 2019
    Copy the full SHA
    6cb99b1 View commit details

Commits on Aug 18, 2019

  1. git: 2.22.1 -> 2.23.0

    Izorkin committed Aug 18, 2019
    Copy the full SHA
    6da7a17 View commit details
  2. Merge staging-next into staging

    FRidh committed Aug 18, 2019
    Copy the full SHA
    e4c0abd View commit details
  3. icestorm: fix eval

    FRidh committed Aug 18, 2019
    Copy the full SHA
    a5b549e View commit details
  4. Merge pull request #66725 from flokli/wrapqtappshook-exec

    stdenv: add isELFExec, isELFDyn, fix wrappers
    flokli authored Aug 18, 2019
    Copy the full SHA
    dbd7ea5 View commit details
  5. SDL2: 2.0.9 -> 2.0.10

    cpages committed Aug 18, 2019
    Copy the full SHA
    ebe711a View commit details
  6. libglvnd, ocl-icd, vulkan-loader: Remove addOpenGLRunpath where not n…

    …eeded.
    
    For APIs that use driver config files, the config files should point to libraries using absolute paths, so `RUNPATH` should be unnecessary. It is still needed for `libGLX` because that does not use config files but the dispatch library receives just a vendor name from the X server.
    ambrop72 authored and abbradar committed Aug 18, 2019
    Copy the full SHA
    1bba961 View commit details
  7. Copy the full SHA
    23abcd5 View commit details

Commits on Aug 19, 2019

  1. nano: fix hash

    This broke in f65aa21.
    LouisDK1 authored and flokli committed Aug 19, 2019
    Copy the full SHA
    6141829 View commit details
  2. help2man: 1.47.10 -> 1.47.11

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/help2man/versions
    r-ryantm committed Aug 19, 2019
    Copy the full SHA
    bee67d4 View commit details
  3. tora: 3.1 -> 3.2.176

    peterhoeg committed Aug 19, 2019
    Copy the full SHA
    156e9b4 View commit details
  4. Copy the full SHA
    ab93b22 View commit details
  5. Copy the full SHA
    9554ffe View commit details
  6. kolf: init at 19.08.0

    peterhoeg committed Aug 19, 2019
    Copy the full SHA
    d3fd2c4 View commit details
  7. Copy the full SHA
    136585a View commit details
  8. libgee: 0.20.1 -> 0.20.2

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/libgee/versions
    r-ryantm committed Aug 19, 2019
    Copy the full SHA
    c5153f7 View commit details
  9. Merge pull request #66936 from r-ryantm/auto-update/libgee

    libgee: 0.20.1 -> 0.20.2
    jtojnar authored Aug 19, 2019
    Copy the full SHA
    575212c View commit details
  10. Merge pull request #66933 from peterhoeg/p/kolf

    kolf: init at 19.08.0
    ttuegel authored Aug 19, 2019
    Copy the full SHA
    1537123 View commit details
  11. Merge pull request #66911 from r-ryantm/auto-update/help2man

    help2man: 1.47.10 -> 1.47.11
    lsix authored Aug 19, 2019
    Copy the full SHA
    f743aa1 View commit details
  12. Copy the full SHA
    735fbfa View commit details
  13. Copy the full SHA
    18e0f9d View commit details
  14. Copy the full SHA
    ded7ec0 View commit details
  15. openjdk: boostrap with adoptopenjdk-bin and cleanup

    This allows OpenJDK 11 to build for armv6l, armv7l and aarch64, and OpenJDK 8 to
    build for aarch64.
    lopsided98 committed Aug 19, 2019
    Copy the full SHA
    de5e65a View commit details
  16. openjfx: fix package name

    lopsided98 committed Aug 19, 2019
    Copy the full SHA
    4aaaf51 View commit details
  17. openjdk8: 8u212 -> 8u222

    lopsided98 committed Aug 19, 2019
    Copy the full SHA
    6f8f3ed View commit details
  18. Copy the full SHA
    d4e2cb0 View commit details
  19. Copy the full SHA
    b4480b7 View commit details
  20. Copy the full SHA
    5d07172 View commit details
  21. chromium: remove obsolete patches

    One of these patches was causing a warning message, which broke ofborg
    evaluation.
    lopsided98 committed Aug 19, 2019
    Copy the full SHA
    8b0a684 View commit details

Commits on Aug 20, 2019

  1. driversi686Linux.mesa: 19.1.3 -> 19.1.4

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/mesa/versions
    r-ryantm committed Aug 20, 2019
    Copy the full SHA
    cbe14dc View commit details
  2. openconnect: 8.03 -> 8.04

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/openconnect/versions
    r-ryantm committed Aug 20, 2019
    Copy the full SHA
    ed2bbb7 View commit details
  3. Merge pull request #66634 from matthewbauer/at-spi2-core-minimize-clo…

    …sure
    
    at-spi2-core: provide fallback dbus_daemon manually
    matthewbauer authored Aug 20, 2019
    Copy the full SHA
    d02e0b6 View commit details
  4. Merge pull request #65247 from lopsided98/openjdk-arm

    openjdk: enable bootstrapping on ARM
    timokau authored Aug 20, 2019
    Copy the full SHA
    c5c4720 View commit details

Commits on Aug 21, 2019

  1. libv4l: disable building Qt (#67134)

    Since we added wrapQTAppHooks to qt5.mkDerivation, it pollutes the closure
    of everything it touches even when package is not building with Qt support.
    We had to revert to the standard deriver to avoid this.
    jtojnar authored and worldofpeace committed Aug 21, 2019
    Copy the full SHA
    e6e03ba View commit details
  2. vim: 8.1.1547 -> 8.1.1866

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/vim/versions
    r-ryantm committed Aug 21, 2019
    Copy the full SHA
    0fdf393 View commit details
Showing 2,454 changed files with 9,567 additions and 7,950 deletions.
135 changes: 100 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,113 @@
[<img src="https://nixos.org/logo/nixos-hires.png" width="500px" alt="logo" />](https://nixos.org/nixos)
<p align="center">
<a href="https://nixos.org/nixos"><img src="https://nixos.org/logo/nixos-hires.png" width="500px" alt="NixOS logo" /></a>
</p>

[![Code Triagers Badge](https://www.codetriage.com/nixos/nixpkgs/badges/users.svg)](https://www.codetriage.com/nixos/nixpkgs)
[![Open Collective supporters](https://opencollective.com/nixos/tiers/supporter/badge.svg?label=Supporter&color=brightgreen)](https://opencollective.com/nixos)
<p align="center">
<a href="https://www.codetriage.com/nixos/nixpkgs"><img src="https://www.codetriage.com/nixos/nixpkgs/badges/users.svg" alt="Code Triagers badge" /></a>
<a href="https://opencollective.com/nixos"><img src="https://opencollective.com/nixos/tiers/supporter/badge.svg?label=Supporter&color=brightgreen" alt="Open Collective supporters" /></a>
</p>

Nixpkgs is a collection of packages for the [Nix](https://nixos.org/nix/) package
manager. It is periodically built and tested by the [Hydra](https://hydra.nixos.org/)
build daemon as so-called channels. To get channel information via git, add
[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels.git) as a remote:
[Nixpkgs](https://github.com/nixos/nixpkgs) is a collection of over
40,000 software packages that can be installed with the
[Nix](https://nixos.org/nix/) package manager. It also implements
[NixOS](https://nixos.org/nixos/), a purely-functional Linux distribution.

```
% git remote add channels https://github.com/NixOS/nixpkgs-channels.git
```
# Manuals

For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. `nixos-19.03` for the latest
release and `nixos-unstable` for the latest successful build of master:
* [NixOS Manual](https://nixos.org/nixos/manual) - how to install, configure, and maintain a purely-functional Linux distribution
* [Nixpkgs Manual](https://nixos.org/nixpkgs/manual/) - contributing to Nixpkgs and using programming-language-specific Nix expressions
* [Nix Package Manager Manual](https://nixos.org/nix/manual) - how to write Nix expresssions (programs), and how to use Nix command line tools

```
% git remote update channels
% git rebase channels/nixos-19.03
```
# Community

For pull requests, please rebase onto nixpkgs `master`.
* [Discourse Forum](https://discourse.nixos.org/)
* [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)
* [NixOS Weekly](https://weekly.nixos.org/)
* [Community-maintained wiki](https://nixos.wiki/)

# Other Project Repositories

The sources of all offical Nix-related projects are in the [NixOS
organization on GitHub](https://github.com/NixOS/). Here are some of
the main ones:

* [Nix](https://github.com/NixOS/nix) - the purely functional package manager
* [NixOps](https://github.com/NixOS/nixops) - the tool to remotely deploy NixOS machines
* [Nix RFCs](https://github.com/NixOS/rfcs) - the formal process for making substantial changes to the community
* [NixOS homepage](https://github.com/NixOS/nixos-homepage) - the [NixOS.org](https://nixos.org) website
* [hydra](https://github.com/NixOS/hydra) - our continuous integration system
* [NixOS Artwork](https://github.com/NixOS/nixos-artwork) - NixOS artwork

[NixOS](https://nixos.org/nixos/) Linux distribution source code is located inside
`nixos/` folder.
# Continuous Integration and Distribution

Nixpkgs and NixOS are built and tested by our continuous integration
system, [Hydra](https://hydra.nixos.org/).

* [NixOS installation instructions](https://nixos.org/nixos/manual/#ch-installation)
* [Documentation (Nix Expression Language chapter)](https://nixos.org/nix/manual/#ch-expression-language)
* [Manual (How to write packages for Nix)](https://nixos.org/nixpkgs/manual/)
* [Manual (NixOS)](https://nixos.org/nixos/manual/)
* [Community maintained wiki](https://nixos.wiki/)
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for 19.03 release](https://hydra.nixos.org/jobset/nixos/release-19.03)
* [Continuous package builds for the NixOS 19.03 release](https://hydra.nixos.org/jobset/nixos/release-19.03)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for 19.03 release](https://hydra.nixos.org/job/nixos/release-19.03/tested#tabs-constituents)
* [Tests for the NixOS 19.03 release](https://hydra.nixos.org/job/nixos/release-19.03/tested#tabs-constituents)

Communication:
Artifacts successfully built with Hydra are published to cache at
https://cache.nixos.org/. When successful build and test criteria are
met, the Nixpkgs expressions are distributed via [Nix
channels](https://nixos.org/nix/manual/#sec-channels). The channels
are provided via a read-only mirror of the Nixpkgs repository called
[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels).

* [Discourse Forum](https://discourse.nixos.org/)
* [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)
# Contributing

Nixpkgs is among the most active projects on GitHub. While thousands
of open issues and pull requests might seem a lot at first, it helps
consider it in the context of the scope of the project. Nixpkgs
describes how to build over 40,000 pieces of software and implements a
Linux distribution. The [GitHub Insights](https://github.com/NixOS/nixpkgs/pulse)
page gives a sense of the project activity.

Community contributions are always welcome through GitHub Issues and
Pull Requests. When pull requests are made, our tooling automation bot,
[OfBorg](https://github.com/NixOS/ofborg) will perform various checks
to help ensure expression quality.

The *Nixpkgs maintainers* are people who have assigned themselves to
maintain specific individual packages. We encourage people who care
about a package to assign themselves as a maintainer. When a pull
request is made against a package, OfBorg will notify the appropriate
maintainer(s). The *Nixpkgs committers* are people who have been given
permission to merge.

Most contributions are based on and merged into these branches:

* `master` is the main branch where all small contributions go
* `staging` is branched from master, changes that have a big impact on
Hydra builds go to this branch
* `staging-next` is branched from staging and only fixes to stabilize
and security fixes with a big impact on Hydra builds should be
contributed to this branch. This branch is merged into master when
deemed of sufficiently high quality

For more information about contributing to the project, please visit
the [contributing page](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).

# Donations

The infrastructure for NixOS and related projects is maintained by a
nonprofit organization, the [NixOS
Foundation](https://nixos.org/nixos/foundation.html). To ensure the
continuity and expansion of the NixOS infrastructure, we are looking
for donations to our organization.

You can donate to the NixOS foundation by using Open Collective:

<a href="https://opencollective.com/nixos#support"><img src="https://opencollective.com/nixos/tiers/supporter.svg?width=890" /></a>

# License

Nixpkgs is licensed under the [MIT License](COPYING).

Note: MIT license does not apply to the packages built by Nixpkgs, merely to
the package descriptions (Nix expressions, build scripts, and so on). It also
might not apply to patches included in Nixpkgs, which may be derivative works
of the packages to which they apply. The aforementioned artifacts are all
covered by the licenses of the respective packages.
Note: MIT license does not apply to the packages built by Nixpkgs,
merely to the files in this repository (the Nix expressions, build
scripts, NixOS modules, etc.). It also might not apply to patches
included in Nixpkgs, which may be derivative works of the packages to
which they apply. The aforementioned artifacts are all covered by the
licenses of the respective packages.
4 changes: 2 additions & 2 deletions doc/doc-support/lib-function-locations.nix
Original file line number Diff line number Diff line change
@@ -14,10 +14,10 @@ let
builtins.map
(subsetname: {
subsetname = subsetname;
functions = libDefPos toplib."${subsetname}";
functions = libDefPos toplib.${subsetname};
})
(builtins.filter
(name: builtins.isAttrs toplib."${name}")
(name: builtins.isAttrs toplib.${name})
(builtins.attrNames toplib));

nixpkgsLib = pkgs.lib;
2 changes: 1 addition & 1 deletion lib/deprecated.nix
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ rec {
let arg = (merger init (defaultMergeArg init x));
# now add the function with composed args already applied to the final attrs
base = (setAttrMerge "passthru" {} (f arg)
( z: z // rec {
( z: z // {
function = foldArgs merger f arg;
args = (lib.attrByPath ["passthru" "args"] {} z) // x;
} ));
2 changes: 1 addition & 1 deletion lib/kernel.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib, version }:

with lib;
rec {
{
# Common patterns/legacy
whenAtLeast = ver: mkIf (versionAtLeast version ver);
whenOlder = ver: mkIf (versionOlder version ver);
2 changes: 1 addition & 1 deletion lib/licenses.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ let

in

lib.mapAttrs (n: v: v // { shortName = n; }) rec {
lib.mapAttrs (n: v: v // { shortName = n; }) {
/* License identifiers from spdx.org where possible.
* If you cannot find your license here, then look for a similar license or
* add it to this list. The URL mentioned above is a good source for inspiration.
4 changes: 2 additions & 2 deletions lib/lists.nix
Original file line number Diff line number Diff line change
@@ -459,11 +459,11 @@ rec {
if length list < 2
then # finish
{ result = list; }
else if dfsthis ? "cycle"
else if dfsthis ? cycle
then # there's a cycle, starting from the current vertex, return it
{ cycle = reverseList ([ dfsthis.cycle ] ++ dfsthis.visited);
inherit (dfsthis) loops; }
else if toporest ? "cycle"
else if toporest ? cycle
then # there's a cycle somewhere else in the graph, return it
toporest
# Slow, but short. Can be made a bit faster with an explicit stack.
22 changes: 11 additions & 11 deletions lib/systems/default.nix
Original file line number Diff line number Diff line change
@@ -58,13 +58,13 @@ rec {
uname = {
# uname -s
system = {
"linux" = "Linux";
"windows" = "Windows";
"darwin" = "Darwin";
"netbsd" = "NetBSD";
"freebsd" = "FreeBSD";
"openbsd" = "OpenBSD";
"wasi" = "Wasi";
linux = "Linux";
windows = "Windows";
darwin = "Darwin";
netbsd = "NetBSD";
freebsd = "FreeBSD";
openbsd = "OpenBSD";
wasi = "Wasi";
}.${final.parsed.kernel.name} or null;

# uname -p
@@ -86,10 +86,10 @@ rec {
else if final.isx86_64 then "x86_64"
else if final.isx86 then "i386"
else {
"powerpc" = "ppc";
"powerpcle" = "ppc";
"powerpc64" = "ppc64";
"powerpc64le" = "ppc64le";
powerpc = "ppc";
powerpcle = "ppc";
powerpc64 = "ppc64";
powerpc64le = "ppc64le";
}.${final.parsed.cpu.name} or final.parsed.cpu.name;

emulator = pkgs: let
2 changes: 1 addition & 1 deletion lib/systems/doubles.nix
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ let

filterDoubles = f: map parse.doubleFromSystem (lists.filter f allParsed);

in rec {
in {
inherit all;

none = [];
18 changes: 9 additions & 9 deletions lib/systems/examples.nix
Original file line number Diff line number Diff line change
@@ -24,35 +24,35 @@ rec {
platform = platforms.powernv;
};

sheevaplug = rec {
sheevaplug = {
config = "armv5tel-unknown-linux-gnueabi";
platform = platforms.sheevaplug;
};

raspberryPi = rec {
raspberryPi = {
config = "armv6l-unknown-linux-gnueabihf";
platform = platforms.raspberrypi;
};

armv7l-hf-multiplatform = rec {
armv7l-hf-multiplatform = {
config = "armv7l-unknown-linux-gnueabihf";
platform = platforms.armv7l-hf-multiplatform;
};

aarch64-multiplatform = rec {
aarch64-multiplatform = {
config = "aarch64-unknown-linux-gnu";
platform = platforms.aarch64-multiplatform;
};

armv7a-android-prebuilt = rec {
armv7a-android-prebuilt = {
config = "armv7a-unknown-linux-androideabi";
sdkVer = "24";
ndkVer = "18b";
platform = platforms.armv7a-android;
useAndroidPrebuilt = true;
};

aarch64-android-prebuilt = rec {
aarch64-android-prebuilt = {
config = "aarch64-unknown-linux-android";
sdkVer = "24";
ndkVer = "18b";
@@ -65,17 +65,17 @@ rec {
inherit (platform.gcc) fpu;
};

pogoplug4 = rec {
pogoplug4 = {
config = "armv5tel-unknown-linux-gnueabi";
platform = platforms.pogoplug4;
};

ben-nanonote = rec {
ben-nanonote = {
config = "mipsel-unknown-linux-uclibc";
platform = platforms.ben_nanonote;
};

fuloongminipc = rec {
fuloongminipc = {
config = "mipsel-unknown-linux-gnu";
platform = platforms.fuloong2f_n32;
};
2 changes: 1 addition & 1 deletion lib/systems/parse.nix
Original file line number Diff line number Diff line change
@@ -408,7 +408,7 @@ rec {
getKernel = name: kernels.${name} or (throw "Unknown kernel: ${name}");
getAbi = name: abis.${name} or (throw "Unknown ABI: ${name}");

parsed = rec {
parsed = {
cpu = getCpu args.cpu;
vendor =
/**/ if args ? vendor then getVendor args.vendor
22 changes: 11 additions & 11 deletions lib/systems/platforms.nix
Original file line number Diff line number Diff line change
@@ -456,16 +456,16 @@ rec {
};

selectBySystem = system: {
"i486-linux" = pc32;
"i586-linux" = pc32;
"i686-linux" = pc32;
"x86_64-linux" = pc64;
"armv5tel-linux" = sheevaplug;
"armv6l-linux" = raspberrypi;
"armv7a-linux" = armv7l-hf-multiplatform;
"armv7l-linux" = armv7l-hf-multiplatform;
"aarch64-linux" = aarch64-multiplatform;
"mipsel-linux" = fuloong2f_n32;
"powerpc64le-linux" = powernv;
i486-linux = pc32;
i586-linux = pc32;
i686-linux = pc32;
x86_64-linux = pc64;
armv5tel-linux = sheevaplug;
armv6l-linux = raspberrypi;
armv7a-linux = armv7l-hf-multiplatform;
armv7l-linux = armv7l-hf-multiplatform;
aarch64-linux = aarch64-multiplatform;
mipsel-linux = fuloong2f_n32;
powerpc64le-linux = powernv;
}.${system} or pcBase;
}
8 changes: 4 additions & 4 deletions lib/types.nix
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ rec {
# Default type functor
defaultFunctor = name: {
inherit name;
type = types."${name}" or null;
type = types.${name} or null;
wrapped = null;
payload = null;
binOp = a: b: null;
@@ -107,7 +107,7 @@ rec {
merge = mergeEqualOption;
};

int = mkOptionType rec {
int = mkOptionType {
name = "int";
description = "signed integer";
check = isInt;
@@ -136,7 +136,7 @@ rec {
sign = bit: range: ign (0 - (range / 2)) (range / 2 - 1)
"signedInt${toString bit}" "${toString bit} bit signed integer";

in rec {
in {
/* An int with a fixed range.
*
* Example:
@@ -172,7 +172,7 @@ rec {
# Alias of u16 for a port number
port = ints.u16;

float = mkOptionType rec {
float = mkOptionType {
name = "float";
description = "floating point number";
check = isFloat;
2 changes: 1 addition & 1 deletion lib/versions.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ let

in

rec {
{

/* Get the major version string from a string.
Loading