summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-11-14 10:38:29 +0100
committerJörg Thalheim <joerg@thalheim.io>2022-11-14 10:38:29 +0100
commitdb6f4e6bb077fd1be844c8820710c0a5b7315cdd (patch)
tree72d4e41dac602f24336adceb8aa332f3364cc062
parentfe789649fa52aa95a8ed49469becd39f9404998d (diff)
downloadpatchelf-db6f4e6bb077fd1be844c8820710c0a5b7315cdd.tar.gz
cross compile to netbsd
-rw-r--r--flake.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 5835dca..559da86 100644
--- a/flake.nix
+++ b/flake.nix
@@ -110,13 +110,16 @@
musl = self.packages.${system}.patchelf-musl;
});
- packages = forAllSystems (system: {
- patchelf = patchelfFor nixpkgs.legacyPackages.${system};
+ packages = forAllSystems (system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ patchelf = patchelfFor pkgs;
default = self.packages.${system}.patchelf;
# This is a good test to see if packages can be cross-compiled. It also
# tests if our testsuite uses target-prefixed executable names.
- patchelf-musl-cross = patchelfFor nixpkgs.legacyPackages.${system}.pkgsCross.musl64;
+ patchelf-musl-cross = patchelfFor pkgs.pkgsCross.musl64;
+ patchelf-netbsd-cross = patchelfFor pkgs.pkgsCross.x86_64-netbsd;
patchelf-win32 = (patchelfFor (pkgsCrossForMingw system).mingw32).overrideAttrs (old: {
NIX_CFLAGS_COMPILE = "-static";