diff options
| author | Fuwn <[email protected]> | 2024-09-16 19:14:39 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-16 19:14:39 -0700 |
| commit | f717728b1548f50ed740248037bae3791a0584dd (patch) | |
| tree | 6b61e84f36be7e4a6a926c2a92a49f0e3f528a32 /pkgs/bindtointerface.nix | |
| parent | utility: lemmeknow (diff) | |
| download | nixos-config-f717728b1548f50ed740248037bae3791a0584dd.tar.xz nixos-config-f717728b1548f50ed740248037bae3791a0584dd.zip | |
refactor(pkgs): use tsutsumi
Diffstat (limited to 'pkgs/bindtointerface.nix')
| -rw-r--r-- | pkgs/bindtointerface.nix | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/pkgs/bindtointerface.nix b/pkgs/bindtointerface.nix deleted file mode 100644 index 3372d5d..0000000 --- a/pkgs/bindtointerface.nix +++ /dev/null @@ -1,51 +0,0 @@ -{ - pkgs, - lib, - stdenv, - gcc, -}: -stdenv.mkDerivation { - pname = "bindtointerface"; - version = "1.0"; - - src = pkgs.fetchFromGitHub { - owner = "JsBergbau"; - repo = "BindToInterface"; - rev = "d477326d85f64fdd1dc46382fe698e46f4843100"; - hash = "sha256-B29nXjy8RyFEOsYtko8l9i38sDauX2eW+pLsQssNTmQ="; - }; - - nativeBuildInputs = [ gcc ]; - - buildPhase = '' - gcc \ - -nostartfiles \ - -fpic \ - -shared $src/bindToInterface.c \ - -o bindToInterface.so \ - -ldl \ - -D_GNU_SOURCE - ''; - - installPhase = '' - mkdir -p $out/bin $out/lib - - cp bindToInterface.so $out/lib - - cat <<EOF > $out/bin/vpn - #!/usr/bin/env bash - - env LD_PRELOAD=$out/lib/bindToInterface.so "\$@" - EOF - - chmod +x $out/bin/vpn - ''; - - meta = with lib; { - description = "With this program you can bind applications to a specific network interface / network adapter."; - homepage = "https://github.com/JsBergbau/BindToInterface"; - license = licenses.gpl2; - maintainers = [ maintainers.Fuwn ]; - platforms = platforms.linux; - }; -} |