commit
7dcfe4dce4
@ -0,0 +1,16 @@ |
||||
{ lib, buildDunePackage, posix-base, posix-types, unix-errno }: |
||||
|
||||
buildDunePackage { |
||||
pname = "posix-time2"; |
||||
|
||||
inherit (posix-base) version src; |
||||
|
||||
propagatedBuildInputs = [ posix-base posix-types unix-errno ]; |
||||
|
||||
doCheck = true; |
||||
|
||||
meta = posix-base.meta // { |
||||
description = "posix-time2 provides the types and bindings for posix time APIs"; |
||||
maintainers = with lib.maintainers; [ dandellion ]; |
||||
}; |
||||
} |
@ -0,0 +1,22 @@ |
||||
{ lib, buildDunePackage, fetchurl, ctypes, integers, result }: |
||||
|
||||
buildDunePackage rec { |
||||
pname = "unix-errno"; |
||||
version = "0.6.1"; |
||||
|
||||
minimalOCamlVersion = "4.03.0"; # Specified to be 4.01.0, but it's actually 4.03 |
||||
|
||||
src = fetchurl { |
||||
url = "https://github.com/xapi-project/ocaml-unix-errno/releases/download/${version}/unix-errno-${version}.tbz"; |
||||
sha256 = "sha256-jZqtHwUKTffjuOP2jdKKQRtEOBKyclhfeiPO96hEj4c="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ ctypes integers result ]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/xapi-project/ocaml-unix-errno"; # This is the repo used in the opam package |
||||
description = "Unix errno types, maps, and support for OCaml"; |
||||
license = with licenses; [ isc lgpl21Only ]; # All the files indicate ISC, but there's an LGPL LICENSE file |
||||
maintainers = with maintainers; [ dandellion ]; |
||||
}; |
||||
} |
@ -1,24 +0,0 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
|
||||
buildGoPackage rec { |
||||
pname = "unifi-exporter"; |
||||
version = "0.4.0+git1"; |
||||
rev = "9a4e69fdea91dd0033bda4842998d751b40a6130"; |
||||
|
||||
goPackagePath = "github.com/mdlayher/unifi_exporter"; |
||||
|
||||
src= fetchFromGitHub { |
||||
inherit rev; |
||||
owner = "mdlayher"; |
||||
repo = "unifi_exporter"; |
||||
sha256 = "08zqvwvdqnc301f8jfh7bdvc138szw6xszx884b2v8w2x38w3rmn"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Prometheus exporter that exposes metrics from a Ubiquiti UniFi Controller and UniFi devices"; |
||||
homepage = "https://github.com/mdlayher/unifi_exporter"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ bachp globin ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
Loading…
Reference in new issue