Skip to content

Instantly share code, notes, and snippets.

@chessai
Created November 17, 2018 16:02
Show Gist options
  • Save chessai/dbdf7d2cfc199ff1d36eae824bf4ec34 to your computer and use it in GitHub Desktop.
Save chessai/dbdf7d2cfc199ff1d36eae824bf4ec34 to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, pkgconfig, vpnc, openssl ? null, gnutls ? null, gmp, libxml2, stoken, zlib } :
assert (openssl != null) == (gnutls == null);
let
version = "7.08";
name = "openconnect_pa-${version}";
in stdenv.mkDerivation {
inherit name;
src = fetchFromGitHub {
owner = "dlenski";
repo = "openconnect";
rev = "e5fe063a087385c5b157ad7a9a3fa874181f6e3b";
sha256 = "0ywacqs3nncr2gpjjcz2yc9c6v4ifjssh0vb07h0qff06whqhdax";
};
outputs = [ "out" ];
preConfigure = ''
'';
configureFlags = [
];
postInstall = ''
ldconfig
'';
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ vpnc openssl gnutls gmp libxml2 stoken zlib ];
meta = {
description = "OpenConnect client extended to support Palo Alto Networks' GlobalProtect VPN";
homepage = https://github.com/dlenski/openconnect/;
license = stdenv.lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [ chessai ];
platforms = stdenv.lib.platforms.linux;
};
}
Loading 'default.nix'...
Added 9690 variables.
nix-repl> :b openconnect_pa
builder for '/nix/store/kaa159v1hydwmh8xgg4dxdgsmlywfmfv-openconnect_pa-7.08.drv' failed with exit code 2; last 10 log lines:
unpacking source archive /nix/store/kwljxpp6b0iw72r4x8pd0yaqw0p55g50-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
install flags: pkgconfigdir=/nix/store/hq6g6g1q88c0aqzmmhfrnbj7a3k29qd0-openconnect_pa-7.08-dev/lib/pkgconfig m4datadir=/nix/store/hq6g6g1q88c0aqzmmhfrnbj7a3k29qd0-openconnect_pa-7.08-dev/share/aclocal aclocaldir=/nix/store/hq6g6g1q88c0aqzmmhfrnbj7a3k29qd0-openconnect_pa-7.08-dev/share/aclocal install
make: *** No rule to make target 'install'. Stop.
[0 built (1 failed)]
error: build of '/nix/store/kaa159v1hydwmh8xgg4dxdgsmlywfmfv-openconnect_pa-7.08.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment