mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
treewide: get rid of musl stuff
This commit is contained in:
parent
480434f7ee
commit
e99322507e
@ -1,4 +0,0 @@
|
|||||||
# See pkgs/build-support/setup-hooks/role.bash
|
|
||||||
getHostRole
|
|
||||||
|
|
||||||
export NIX_${role_pre}LDFLAGS+=" -lfts"
|
|
@ -1,19 +0,0 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
name = "musl-fts-${version}";
|
|
||||||
version = "2017-01-13";
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "pullmoll";
|
|
||||||
repo = "musl-fts";
|
|
||||||
rev = "0bde52df588e8969879a2cae51c3a4774ec62472";
|
|
||||||
sha256 = "1q8cpzisziysrs08b89wj0rm4p6dsyl177cclpfa0f7spjm3jg03";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
||||||
|
|
||||||
setupHooks = [
|
|
||||||
../../../build-support/setup-hooks/role.bash
|
|
||||||
./fts-setup-hook.sh
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
{ stdenv, fetchurl }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "musl-getconf";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/alpinelinux/aports/48b16204aeeda5bc1f87e49c6b8e23d9abb07c73/main/musl/getconf.c";
|
|
||||||
sha256 = "0z14ml5343p5gapxw9fnbn2r72r7v2gk8662iifjrblh6sxhqzfq";
|
|
||||||
};
|
|
||||||
|
|
||||||
unpackPhase = ":";
|
|
||||||
|
|
||||||
buildPhase = ''$CC $src -o getconf'';
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp getconf $out/bin/
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
{ stdenv, fetchurl }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "musl-getent";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "https://raw.githubusercontent.com/alpinelinux/aports/89a718d88ec7466e721f3bbe9ede5ffe58061d78/main/musl/getent.c";
|
|
||||||
sha256 = "0b4jqnsmv1hjgcz7db3vd61k682aphl59c3yhwya2q7mkc6g48xk";
|
|
||||||
};
|
|
||||||
|
|
||||||
unpackPhase = ":";
|
|
||||||
|
|
||||||
buildPhase = ''$CC $src -o getent'';
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp getent $out/bin/
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, libxml2, openssl, zlib, bzip2, musl-fts }:
|
{ stdenv, fetchurl, libxml2, openssl, zlib, bzip2, fts }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.6.1";
|
version = "1.6.1";
|
||||||
@ -9,8 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
|
sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libxml2 openssl zlib bzip2 ]
|
buildInputs = [ libxml2 openssl zlib bzip2 fts ];
|
||||||
++ stdenv.lib.optional stdenv.hostPlatform.isMusl musl-fts;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://mackyle.github.io/xar/;
|
homepage = https://mackyle.github.io/xar/;
|
||||||
|
@ -13843,9 +13843,6 @@ with pkgs;
|
|||||||
multipath-tools = callPackage ../os-specific/linux/multipath-tools { };
|
multipath-tools = callPackage ../os-specific/linux/multipath-tools { };
|
||||||
|
|
||||||
musl = callPackage ../os-specific/linux/musl { };
|
musl = callPackage ../os-specific/linux/musl { };
|
||||||
musl-fts = callPackage ../os-specific/linux/musl/fts.nix { };
|
|
||||||
musl-getconf = callPackage ../os-specific/linux/musl/getconf.nix { };
|
|
||||||
musl-getent = callPackage ../os-specific/linux/musl/getent.nix { };
|
|
||||||
|
|
||||||
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;
|
||||||
@ -21460,6 +21457,8 @@ with pkgs;
|
|||||||
mount wall hostname more sysctl getconf
|
mount wall hostname more sysctl getconf
|
||||||
getent;
|
getent;
|
||||||
|
|
||||||
|
fts = if hostPlatform.isMusl then netbsd.fts else null;
|
||||||
|
|
||||||
libbsd = netbsd.compat;
|
libbsd = netbsd.compat;
|
||||||
|
|
||||||
inherit (recurseIntoAttrs (callPackages ../os-specific/bsd { }))
|
inherit (recurseIntoAttrs (callPackages ../os-specific/bsd { }))
|
||||||
|
@ -50,14 +50,14 @@ let
|
|||||||
linux = pkgs.utillinux;
|
linux = pkgs.utillinux;
|
||||||
};
|
};
|
||||||
getconf = {
|
getconf = {
|
||||||
linux = if hostPlatform.isMusl then pkgs.musl-getconf
|
linux = if hostPlatform.isGNU then lib.getBin pkgs.glibc
|
||||||
else lib.getBin stdenv.cc.libc;
|
else pkgs.netbsd.getconf;
|
||||||
darwin = pkgs.darwin.system_cmds;
|
darwin = pkgs.darwin.system_cmds;
|
||||||
};
|
};
|
||||||
getent = {
|
getent = {
|
||||||
linux = if hostPlatform.isMusl then pkgs.musl-getent
|
linux = if hostPlatform.isGNU then lib.getBin pkgs.glibc
|
||||||
# This may not be right on other platforms, but preserves existing behavior
|
else pkgs.netbsd.getent;
|
||||||
else /* if hostPlatform.libc == "glibc" then */ pkgs.glibc.bin;
|
darwin = pkgs.netbsd.getent;
|
||||||
};
|
};
|
||||||
getopt = {
|
getopt = {
|
||||||
linux = pkgs.utillinux;
|
linux = pkgs.utillinux;
|
||||||
|
Loading…
Reference in New Issue
Block a user