diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2024-04-15 07:57:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 07:57:08 -0500 |
commit | 48e4597e5238eb1b920086f3b25ac0c0b364611a (patch) | |
tree | 78f04f08492f1189f04a57046713b554df9f8a95 /pkgs/tools | |
parent | 1f62dc5ccd627ac62c245fa8dba460aed7b3fa51 (diff) | |
parent | fe26578be988f00bd629d7775a04c7ae87c3574e (diff) |
Merge pull request #298667 from anthonyroussel/upgrade/facter
facter: 3.14.17 -> 4.6.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/system/facter/default.nix | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/pkgs/tools/system/facter/default.nix b/pkgs/tools/system/facter/default.nix deleted file mode 100644 index 02c48d302ac35..0000000000000 --- a/pkgs/tools/system/facter/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, yaml-cpp, openssl, ruby, util-linux }: - -stdenv.mkDerivation rec { - pname = "facter"; - version = "3.14.17"; - - src = fetchFromGitHub { - sha256 = "sha256-RvsUt1DyN8Xr+Xtz84mbKlDwxLewgK6qklYVdQHu6q0="; - rev = version; - repo = pname; - owner = "puppetlabs"; - }; - - postPatch = '' - sed '1i#include <array>' -i lib/src/facts/glib/load_average_resolver.cc # gcc12 - ''; - - CXXFLAGS = lib.optionalString stdenv.cc.isGNU "-fpermissive -Wno-error=catch-value"; - NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lblkid"; - - cmakeFlags = [ - "-DFACTER_RUBY=${ruby}/lib/libruby${stdenv.hostPlatform.extensions.sharedLibrary}" - "-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby" - ]; - - env.NIX_CFLAGS_COMPILE = "-Wno-error"; - - nativeBuildInputs = [ cmake ]; - buildInputs = [ boost cpp-hocon curl leatherman libwhereami yaml-cpp openssl ruby util-linux ]; - - meta = with lib; { - homepage = "https://github.com/puppetlabs/facter"; - description = "A system inventory tool"; - license = licenses.asl20; - maintainers = [ maintainers.womfoo ]; - platforms = platforms.unix; - mainProgram = "facter"; - }; -} |