Skip to content

Commit

Permalink
Merge branch 'master' into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed May 23, 2022
2 parents ba51228 + 26e7906 commit 232db92
Show file tree
Hide file tree
Showing 20 changed files with 167 additions and 128 deletions.
3 changes: 2 additions & 1 deletion lib/systems/doubles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
# none
"aarch64_be-none" "aarch64-none" "arm-none" "armv6l-none" "avr-none" "i686-none"
"msp430-none" "or1k-none" "m68k-none" "powerpc-none" "powerpcle-none"
"riscv32-none" "riscv64-none" "s390-none" "s390x-none" "vc4-none"
"riscv32-none" "riscv64-none" "rx-none" "s390-none" "s390x-none" "vc4-none"
"x86_64-none"

# OpenBSD
Expand Down Expand Up @@ -76,6 +76,7 @@ in {
riscv = filterDoubles predicates.isRiscV;
riscv32 = filterDoubles predicates.isRiscV32;
riscv64 = filterDoubles predicates.isRiscV64;
rx = filterDoubles predicates.isRx;
vc4 = filterDoubles predicates.isVc4;
or1k = filterDoubles predicates.isOr1k;
m68k = filterDoubles predicates.isM68k;
Expand Down
5 changes: 5 additions & 0 deletions lib/systems/examples.nix
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ rec {
libc = "newlib";
};

rx-embedded = {
config = "rx-none-elf";
libc = "newlib";
};

msp430 = {
config = "msp430-elf";
libc = "newlib";
Expand Down
1 change: 1 addition & 0 deletions lib/systems/inspect.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ rec {
isRiscV = { cpu = { family = "riscv"; }; };
isRiscV32 = { cpu = { family = "riscv"; bits = 32; }; };
isRiscV64 = { cpu = { family = "riscv"; bits = 64; }; };
isRx = { cpu = { family = "rx"; }; };
isSparc = { cpu = { family = "sparc"; }; };
isWasm = { cpu = { family = "wasm"; }; };
isMsp430 = { cpu = { family = "msp430"; }; };
Expand Down
1 change: 1 addition & 0 deletions lib/systems/parse.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ rec {

alpha = { bits = 64; significantByte = littleEndian; family = "alpha"; };

rx = { bits = 32; significantByte = littleEndian; family = "rx"; };
msp430 = { bits = 16; significantByte = littleEndian; family = "msp430"; };
avr = { bits = 8; family = "avr"; };

Expand Down
7 changes: 6 additions & 1 deletion pkgs/applications/audio/mpg321/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch";
sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x";
})
# Apple defines semun already. Skip redefining it to fix build errors.
(fetchpatch {
url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/mpg321/0.3.2.patch";
sha256 = "sha256-qFYpKpE9PZSzOJrnsQINZi6FvUVX0anRyOvlF5eOYqE=";
})
];

hardeningDisable = [ "format" ];
Expand All @@ -37,6 +42,6 @@ stdenv.mkDerivation rec {
description = "Command-line MP3 player";
homepage = "http://mpg321.sourceforge.net/";
license = licenses.gpl2;
platforms = platforms.gnu ++ platforms.linux;
platforms = platforms.unix;
};
}
3 changes: 2 additions & 1 deletion pkgs/applications/editors/notepad-next/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, qmake, libsForQt5 }:
{ mkDerivation, lib, fetchFromGitHub, qmake, libsForQt5, stdenv }:

mkDerivation rec {
pname = "notepad-next";
Expand Down Expand Up @@ -32,5 +32,6 @@ mkDerivation rec {
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.sebtm ];
broken = stdenv.isAarch64;
};
}
Loading

0 comments on commit 232db92

Please sign in to comment.