mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +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
33 lines
781 B
Nix
33 lines
781 B
Nix
{ lib, stdenv, fetchFromGitHub, zlib, nettools, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "iodine";
|
|
version = "unstable-2019-09-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yarrick";
|
|
repo = "iodine";
|
|
rev = "8e14f18";
|
|
sha256 = "0k8m99qfjd5n6n56jnq85y7q8h2i2b8yw6ba0kxsz4jyx97lavg3";
|
|
};
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
patchPhase = ''sed -i "s,/sbin/route,${nettools}/bin/route," src/tun.c'';
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-DIFCONFIGPATH=\"${nettools}/bin/\"";
|
|
|
|
installFlags = [ "prefix=\${out}" ];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) iodine;
|
|
};
|
|
|
|
meta = {
|
|
homepage = "http://code.kryo.se/iodine/";
|
|
description = "Tool to tunnel IPv4 data through a DNS server";
|
|
license = lib.licenses.isc;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|