errno: fix cross compilation by not building *all* of moreutils
This commit is contained in:
parent
e8b900c722
commit
c7dd49af91
|
@ -1,7 +1,19 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
sane.programs.errno = {
|
||||
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.moreutils "bin/errno";
|
||||
# packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.moreutils "bin/errno";
|
||||
# actually, don't build all of moreutils because not all of it builds for cross targets
|
||||
packageUnwrapped = pkgs.moreutils.overrideAttrs (base: {
|
||||
makeFlags = [
|
||||
"BINS=errno"
|
||||
"MANS=errno.1"
|
||||
"PERLSCRIPTS=errno" #< Makefile errors if empty, but this works :)
|
||||
];
|
||||
installFlags = base.installFlags ++ [ "INSTALL_BIN=install" ]; #< cross fix; defaults `install -s`
|
||||
#v disable the perl-specific stuff
|
||||
propagatedBuildInputs = [];
|
||||
postInstall = "";
|
||||
});
|
||||
|
||||
sandbox.method = "landlock";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user