about summary refs log tree commit diff
path: root/pkgs/tools/system/facter
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/system/facter')
-rw-r--r--pkgs/tools/system/facter/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/system/facter/default.nix b/pkgs/tools/system/facter/default.nix
new file mode 100644
index 000000000000..5a37262f8187
--- /dev/null
+++ b/pkgs/tools/system/facter/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl, boost, cmake, curl, libyamlcpp, openssl, utillinux }:
+
+stdenv.mkDerivation rec {
+  name = "facter-${version}";
+  version = "3.0.2";
+  src = fetchurl {
+    url = "https://downloads.puppetlabs.com/facter/${name}.tar.gz";
+    sha256 = "1myf1r827bh3n0snkzwj2jnc0sax9bq6z1vv9gr90rqr73lixvig";
+  };
+
+  libyamlcpp_ = libyamlcpp.override { makePIC = true; };
+
+  buildInputs = [ boost cmake curl libyamlcpp_ openssl utillinux ];
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/puppetlabs/facter;
+    description = "A system inventory tool";
+    license = licenses.asl20;
+    maintainers = [ maintainers.womfoo ];
+    platforms = platforms.linux;
+  };
+
+}