nixpkgs/pkgs/tools/system/facter/default.nix
R. RyanTM 34b6eb93d2 facter: 3.11.0 -> 3.11.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/facter/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/p374zrqr6q2q61jfkfmh1i56wrszhln4-facter-3.11.1/bin/facter -h’ got 0 exit code
- ran ‘/nix/store/p374zrqr6q2q61jfkfmh1i56wrszhln4-facter-3.11.1/bin/facter --help’ got 0 exit code
- ran ‘/nix/store/p374zrqr6q2q61jfkfmh1i56wrszhln4-facter-3.11.1/bin/facter help’ got 0 exit code
- found 3.11.1 with grep in /nix/store/p374zrqr6q2q61jfkfmh1i56wrszhln4-facter-3.11.1
- directory tree listing: https://gist.github.com/10738b9674532db0804dfba417c5d454
2018-04-20 06:46:09 -07:00

33 lines
980 B
Nix

{ stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, libyamlcpp, openssl, ruby, utillinux }:
stdenv.mkDerivation rec {
name = "facter-${version}";
version = "3.11.1";
src = fetchFromGitHub {
sha256 = "10ai59vyx1ssb3jyfwnmi4y5kchlnbi7vn7wbax36pa90l1j7jqk";
rev = version;
repo = "facter";
owner = "puppetlabs";
};
CXXFLAGS = "-fpermissive";
NIX_LDFLAGS = "-lblkid";
cmakeFlags = [ "-DFACTER_RUBY=${ruby}/lib/libruby.so" ];
# since we cant expand $out in cmakeFlags
preConfigure = "cmakeFlags+=\" -DRUBY_LIB_INSTALL=$out/lib/ruby\"";
buildInputs = [ boost cmake cpp-hocon curl leatherman libwhereami libyamlcpp openssl ruby utillinux ];
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = https://github.com/puppetlabs/facter;
description = "A system inventory tool";
license = licenses.asl20;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};
}