Merge pull request #38712 from matthewbauer/unixtools2
Unix-tools: Cleanup and more tweaks
This commit is contained in:
commit
ce5455b2ba
@ -1,17 +1,11 @@
|
|||||||
{ stdenv, fetchurl, runCommand
|
{ stdenv, fetchurl, runCommand
|
||||||
, erlang, python, libxml2, libxslt, xmlto
|
, erlang, python, libxml2, libxslt, xmlto
|
||||||
, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync
|
, docbook_xml_dtd_45, docbook_xsl, zip, unzip, rsync
|
||||||
|
|
||||||
, AppKit, Carbon, Cocoa
|
, AppKit, Carbon, Cocoa
|
||||||
|
, getconf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
# we only need that one glibc binary (28k instead of 2.7M)
|
|
||||||
getconf = runCommand "getconf" {} ''
|
|
||||||
install -D ${stdenv.lib.getBin stdenv.cc.libc}/bin/getconf $out/bin/getconf
|
|
||||||
'';
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "rabbitmq-server-${version}";
|
name = "rabbitmq-server-${version}";
|
||||||
version = "3.6.15";
|
version = "3.6.15";
|
||||||
|
|
||||||
|
@ -13705,14 +13705,6 @@ with pkgs;
|
|||||||
musl-fts = callPackage ../os-specific/linux/musl/fts.nix { };
|
musl-fts = callPackage ../os-specific/linux/musl/fts.nix { };
|
||||||
musl-getconf = callPackage ../os-specific/linux/musl/getconf.nix { };
|
musl-getconf = callPackage ../os-specific/linux/musl/getconf.nix { };
|
||||||
musl-getent = callPackage ../os-specific/linux/musl/getent.nix { };
|
musl-getent = callPackage ../os-specific/linux/musl/getent.nix { };
|
||||||
getent =
|
|
||||||
if hostPlatform.isMusl then musl-getent
|
|
||||||
# This may not be right on other platforms, but preserves existing behavior
|
|
||||||
else /* if hostPlatform.libc == "glibc" then */ glibc.bin;
|
|
||||||
|
|
||||||
getconf =
|
|
||||||
if hostPlatform.isMusl then musl-getconf
|
|
||||||
else lib.getBin stdenv.cc.libc;
|
|
||||||
|
|
||||||
nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
|
nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
|
||||||
else unixtools.nettools;
|
else unixtools.nettools;
|
||||||
@ -21233,5 +21225,6 @@ with pkgs;
|
|||||||
# Unix tools
|
# Unix tools
|
||||||
unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
|
unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
|
||||||
inherit (unixtools) hexdump ps logger eject modprobe umount
|
inherit (unixtools) hexdump ps logger eject modprobe umount
|
||||||
mount wall hostname more sysctl;
|
mount wall hostname more sysctl getconf
|
||||||
|
getent;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ let
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -s "${provider}" "$out/bin/${cmd}"
|
cp "${provider}" "$out/bin/${cmd}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in rec {
|
in rec {
|
||||||
@ -44,6 +44,13 @@ in rec {
|
|||||||
eject = singleBinary "eject" {
|
eject = singleBinary "eject" {
|
||||||
linux = pkgs.utillinux;
|
linux = pkgs.utillinux;
|
||||||
};
|
};
|
||||||
|
getconf = singleBinary "getconf" {
|
||||||
|
linux = pkgs.musl-getconf;
|
||||||
|
darwin = pkgs.darwin.system_cmds;
|
||||||
|
};
|
||||||
|
getent = singleBinary "getconf" {
|
||||||
|
linux = pkgs.musl-getent;
|
||||||
|
};
|
||||||
getopt = singleBinary "getopt" {
|
getopt = singleBinary "getopt" {
|
||||||
linux = pkgs.utillinux;
|
linux = pkgs.utillinux;
|
||||||
darwin = pkgs.getopt;
|
darwin = pkgs.getopt;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user