diff options
author | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-28 12:29:02 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-26 15:55:47 -0500 |
commit | aab8c7ba437d240bd9780e09489e7358fee180e2 (patch) | |
tree | aa9f728c9750b5b86effef7830bf4a575fa53c16 /lib | |
parent | 1b2675213cd3e59a0a71a60529cc110ac80dd4a3 (diff) | |
download | nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar.gz nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar.bz2 nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar.lz nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar.xz nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.tar.zst nixpkgs-aab8c7ba437d240bd9780e09489e7358fee180e2.zip |
netbsd: add cross target
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 1 | ||||
-rw-r--r-- | lib/systems/examples.nix | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 77f20095295..6e83546ae8e 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -33,6 +33,7 @@ rec { else if final.isAndroid then "bionic" else if final.isLinux /* default */ then "glibc" else if final.isAvr then "avrlibc" + else if final.isNetBSD then "nblibc" # TODO(@Ericson2314) think more about other operating systems else "native/impure"; extensions = { diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index ac1633a1a15..0c9a3b4a63f 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -212,4 +212,11 @@ rec { libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain platform = {}; }; + + # BSDs + + amd64-netbsd = { + config = "x86_64-unknown-netbsd"; + libc = "nblibc"; + }; } |