Skip to content

Commit

Permalink
Nix cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 authored and HU90m committed Sep 26, 2024
1 parent ef39da1 commit 674b454
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 1 addition & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,5 @@
formatter = pkgs.alejandra;
});
in
# Recursive-merge attrsets to compose the final flake outputs attrset.
builtins.foldl' nixpkgs.lib.attrsets.recursiveUpdate {} [
no_system_outputs
all_system_outputs
];
no_system_outputs // all_system_outputs;
}
5 changes: 1 addition & 4 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
pkgs,
inputs,
...
}:
rec {
}: rec {
ncurses5-fhs = pkgs.callPackage ./ncurses5-fhs.nix {};
fpga-udev-rules = pkgs.callPackage ./fpga-udev-rules {};

Expand All @@ -30,8 +29,6 @@ rec {
veridian = pkgs.callPackage ./veridian/default.nix {inherit sv-lang_6;};

riscv64-gcc = pkgs.pkgsCross.riscv64.buildPackages.gcc;
}
// pkgs.lib.optionalAttrs (pkgs.system == "x86_64-linux") {
lowrisc-toolchain-gcc-rv32imcb = pkgs.callPackage ./lowrisc-toolchain-gcc-rv32imcb.nix {};
lowrisc-toolchain-gcc-rv64imac = pkgs.callPackage ./lowrisc-toolchain-gcc-rv64imac.nix {};
}
4 changes: 4 additions & 0 deletions pkgs/lowrisc-toolchain-gcc-rv32imcb.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ stdenv.mkDerivation rec {
patchelf --set-rpath ${lib.makeLibraryPath ["$out" stdenv.cc.cc ncurses5]} "$f" || true
done
'';

meta = {
platforms = ["x86_64-linux"];
};
}
4 changes: 4 additions & 0 deletions pkgs/lowrisc-toolchain-gcc-rv64imac.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ stdenv.mkDerivation rec {
patchelf --set-rpath ${lib.makeLibraryPath ["$out" stdenv.cc.cc ncurses5]} "$f" || true
done
'';

meta = {
platforms = ["x86_64-linux"];
};
}
1 change: 1 addition & 0 deletions pkgs/sv-lang.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ in
license = licenses.mit;
maintainers = with maintainers; [sharzy];
mainProgram = "slang";
broken = stdenv.system == "x86_64-darwin";
platforms = platforms.all;
};
}

0 comments on commit 674b454

Please sign in to comment.