nix-files/hosts/common/programs/errno.nix

21 lines
676 B
Nix

{ pkgs, ... }:
{
sane.programs.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";
};
}