summary refs log tree commit diff
path: root/pkgs/os-specific/linux/pwdutils/default.nix
blob: 98b9ab707353237fe432b2a6aaac8cbdf1be8f72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv, fetchurl, pam, gnutls, libnscd }:

stdenv.mkDerivation rec {
  name = "pwdutils-3.2.6";

  src = fetchurl {
    url = "mirror://kernel/linux/utils/net/NIS/${name}.tar.bz2";
    sha256 = "1pyawvv9x0hiachn1mb257s6hm92dh1ykczgp7ik8z6jl020z3n7";
  };

  buildInputs = [ pam gnutls libnscd ];

  patches = [ ./sys-stat-h.patch ];

  postPatch =
    '' for i in src/tst-*
       do
         sed -i "$i" -e's|/bin/bash|/bin/sh|g'
       done
    '';

  configureFlags = "--disable-ldap --enable-gnutls --exec-prefix=$(out)";

  # FIXME: The test suite seems to make assumptions that don't hold in Nix
  # chroots.
  doCheck = false;

  meta = {
    description = "Linux pwdutils, utilities to manage passwd information";

    longDescription =
      '' Pwdutils is a collection of utilities to manage the passwd
         information stored in local files, NIS, NIS+ or LDAP and can replace
         the shadow suite complete.
      '';

    license = "GPLv2";

    maintainers = [ stdenv.lib.maintainers.ludo ];
    platforms = stdenv.lib.platforms.linux;
  };
}