nixpkgs/pkgs/development/libraries/nss_wrapper/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

22 lines
617 B
Nix

{ lib, stdenv, fetchurl, cmake, pkg-config }:
stdenv.mkDerivation rec {
pname = "nss_wrapper";
version = "1.1.15";
src = fetchurl {
url = "mirror://samba/cwrap/nss_wrapper-${version}.tar.gz";
sha256 = "sha256-Nvh0gypPIVjgT2mqd+VRXhbPbjv4GWjV3YSW231pBq0=";
};
nativeBuildInputs = [ cmake pkg-config ];
meta = with lib; {
description = "A wrapper for the user, group and hosts NSS API";
mainProgram = "nss_wrapper.pl";
homepage = "https://git.samba.org/?p=nss_wrapper.git;a=summary;";
license = licenses.bsd3;
platforms = platforms.unix;
broken = stdenv.isDarwin;
};
}