Skip to content

Commit db6f4e6

Browse files
committed
cross compile to netbsd
1 parent fe78964 commit db6f4e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

flake.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,16 @@
110110
musl = self.packages.${system}.patchelf-musl;
111111
});
112112

113-
packages = forAllSystems (system: {
114-
patchelf = patchelfFor nixpkgs.legacyPackages.${system};
113+
packages = forAllSystems (system: let
114+
pkgs = nixpkgs.legacyPackages.${system};
115+
in {
116+
patchelf = patchelfFor pkgs;
115117
default = self.packages.${system}.patchelf;
116118

117119
# This is a good test to see if packages can be cross-compiled. It also
118120
# tests if our testsuite uses target-prefixed executable names.
119-
patchelf-musl-cross = patchelfFor nixpkgs.legacyPackages.${system}.pkgsCross.musl64;
121+
patchelf-musl-cross = patchelfFor pkgs.pkgsCross.musl64;
122+
patchelf-netbsd-cross = patchelfFor pkgs.pkgsCross.x86_64-netbsd;
120123

121124
patchelf-win32 = (patchelfFor (pkgsCrossForMingw system).mingw32).overrideAttrs (old: {
122125
NIX_CFLAGS_COMPILE = "-static";

0 commit comments

Comments
 (0)