libspnav: fix cross-compilation

Prior to this commit, pkgsCross.foo.libspnav would fail with something
like:

```
/nix/store/...-bash-5.1-p16/bin/bash: line 1: ar: command not found
```

Let's fix that by passing `AR=` in `makeFlags`.
This commit is contained in:
Adam Joseph 2022-05-31 16:47:20 -07:00
parent 888cfd1308
commit 96ac705f1b

View File

@ -21,7 +21,10 @@ stdenv.mkDerivation rec {
];
configureFlags = [ "--disable-debug"];
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
"AR=${stdenv.cc.targetPrefix}ar"
];
preInstall = ''
mkdir -p $out/{lib,include}