From 8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Tue, 11 Dec 2018 18:10:48 +0300 Subject: (* HUGE *) Use nixpkgs overlays --- pkgs/ldapply/default.nix | 11 +++++++++++ pkgs/ldapply/ldap.nix | 14 ++++++++++++++ pkgs/ldapply/main.nix | 16 ++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/ldapply/default.nix create mode 100644 pkgs/ldapply/ldap.nix create mode 100644 pkgs/ldapply/main.nix (limited to 'pkgs/ldapply') diff --git a/pkgs/ldapply/default.nix b/pkgs/ldapply/default.nix new file mode 100644 index 0000000..6bd1219 --- /dev/null +++ b/pkgs/ldapply/default.nix @@ -0,0 +1,11 @@ +{ haskell, haskellPackages }: + +let myHaskellPkgs = haskellPackages.override { + overrides = self: super: { + LDAP = self.callPackage ./ldap.nix { }; # Version with ldapExternalSaslBind + ldif = haskell.lib.dontCheck super.ldif; # requires ancient HUnit == 1.2.* + }; +}; + +in myHaskellPkgs.callPackage ./main.nix { } + diff --git a/pkgs/ldapply/ldap.nix b/pkgs/ldapply/ldap.nix new file mode 100644 index 0000000..03a5fd3 --- /dev/null +++ b/pkgs/ldapply/ldap.nix @@ -0,0 +1,14 @@ +{ mkDerivation, base, HUnit, cyrus_sasl, openldap, stdenv }: +mkDerivation { + pname = "LDAP"; + version = "0.6.11"; + doCheck = false; # XXX: missing file in tarball + sha256 = "1cwh3272zi5r0zznmixghf87vskz7s35bmz6ifyky0xk3s04ijq1"; + libraryHaskellDepends = [ base ]; + librarySystemDepends = [ cyrus_sasl openldap ]; + testHaskellDepends = [ base HUnit ]; + testSystemDepends = [ openldap ]; + homepage = "https://github.com/ezyang/ldap-haskell"; + description = "Haskell binding for C LDAP API"; + license = stdenv.lib.licenses.bsd3; +} diff --git a/pkgs/ldapply/main.nix b/pkgs/ldapply/main.nix new file mode 100644 index 0000000..3a69576 --- /dev/null +++ b/pkgs/ldapply/main.nix @@ -0,0 +1,16 @@ +{ mkDerivation, base, bytestring, docopt, interpolatedstring-perl6 +, LDAP, ldif, stdenv, unordered-containers +}: +mkDerivation { + pname = "ldapply"; + version = "0.2.0"; + sha256 = "0qgpb22k9krdhwjydzyfhjf85crxc49ss7x74mrqj8ivkzg5hl28"; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + base bytestring docopt interpolatedstring-perl6 LDAP ldif + unordered-containers + ]; + description = "LDIF idempotent apply tool"; + license = stdenv.lib.licenses.mit; +} -- cgit v1.2.3