From e0da3ece605cedc2c744d811178bdeae430f3dfb Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 1 Jun 2024 14:48:55 +0000 Subject: [PATCH] errno: simplify --- hosts/common/programs/errno.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/common/programs/errno.nix b/hosts/common/programs/errno.nix index 8cc6966e..c87293a8 100644 --- a/hosts/common/programs/errno.nix +++ b/hosts/common/programs/errno.nix @@ -2,14 +2,15 @@ { 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 + # actually, don't build all of moreutils because not all of it builds for cross targets. + # some of this can be simplified after packageUnwrapped = pkgs.moreutils.overrideAttrs (base: { - makeFlags = [ + makeFlags = (base.makeFlags or []) ++ [ "BINS=errno" "MANS=errno.1" "PERLSCRIPTS=errno" #< Makefile errors if empty, but this works :) + "INSTALL_BIN=install" ]; - installFlags = base.installFlags ++ [ "INSTALL_BIN=install" ]; #< cross fix; defaults `install -s` #v disable the perl-specific stuff propagatedBuildInputs = []; postInstall = "";