From 634d9eb4c1a1260d7719b8d38b15613a9dd975cc Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 22 Jun 2015 17:48:41 -0700 Subject: [PATCH] clib: a micro-package manager for C --- .../tools/package-management/clib/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/tools/package-management/clib/default.nix diff --git a/pkgs/tools/package-management/clib/default.nix b/pkgs/tools/package-management/clib/default.nix new file mode 100644 index 00000000000..ae1213aee7c --- /dev/null +++ b/pkgs/tools/package-management/clib/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchzip, curl }: + +stdenv.mkDerivation rec { + version = "1.4.2"; + name = "clib-${version}"; + + src = fetchzip { + url = "https://github.com/clibs/clib/archive/${version}.zip"; + sha256 = "0hbi5hf4w0iim96h89j7krxv61x92ffxjbldxp3zk92m5sgpldnm"; + }; + + makeFlags = "PREFIX=$(out)"; + + buildInputs = [ curl ]; + + meta = with stdenv.lib; { + description = "C micro-package manager"; + homepage = https://github.com/clibs/clib; + license = licenses.mit; + maintainers = with maintainers; [ jb55 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e35ac93700e..ada3e3bd1f7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -789,6 +789,8 @@ let cloud-init = callPackage ../tools/virtualization/cloud-init { }; + clib = callPackage ../tools/package-management/clib { }; + consul = goPackages.consul; consul-ui = callPackage ../servers/consul/ui.nix { };