mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
39 lines
1001 B
Nix
39 lines
1001 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchurl, libxcrypt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcli";
|
|
version = "1.9.7";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "08pmjhqkwldhmcwjhi2l27slf1fk6nxxfaihnk2637pqkycy8z0c";
|
|
rev = "v${version}";
|
|
repo = "libcli";
|
|
owner = "dparrish";
|
|
};
|
|
|
|
patches =
|
|
[ (fetchurl {
|
|
url = "https://github.com/dparrish/libcli/commit/ebc5a09db457ee1be9996711463cbbafe5ea72d5.patch";
|
|
sha256 = "0szjiw3gd7by1sv924shnngfxvc98xvaqvx228b575xq93xxjcwl";
|
|
})
|
|
];
|
|
|
|
buildInputs = [ libxcrypt ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "AR=${stdenv.cc.targetPrefix}ar" "PREFIX=$(out)" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
# Needed with GCC 12
|
|
"-Wno-error=address"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Emulate a Cisco-style telnet command-line interface";
|
|
homepage = "http://sites.dparrish.com/libcli";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|