nixpkgs/pkgs/development/libraries/libsmartcols/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

33 lines
893 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, python3 }:
stdenv.mkDerivation rec {
name = "libsmartcols";
version = "v2.36.1";
nativeBuildInputs = [ autoreconfHook pkg-config python3 ];
src = fetchFromGitHub {
owner = "karelzak";
repo = "util-linux";
rev = version;
sha256 = "0z7nv054pqhlihqiw0vk3h40j0cxk1yxf8zzh0ddmvk6834cnyxs";
};
configureFlags = [ "--disable-all-programs" "--enable-libsmartcols" ];
buildPhase = ''
make libsmartcols.la
'';
installTargets = [ "install-am" "install-pkgconfigDATA" ];
meta = {
description = "smart column output alignment library";
homepage = https://github.com/karelzak/util-linux/tree/master/libsmartcols;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
maintainers = with stdenv.lib.maintainers; [ rb2k ];
};
}