mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
39 lines
816 B
Nix
39 lines
816 B
Nix
{
|
|
description = "A flake that provides the proxytunnel command";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
# TODO: Check functionality and add support for other architectures.
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
in {
|
|
packages.x86_64-linux.default = pkgs.stdenv.mkDerivation {
|
|
pname = "proxytunnel";
|
|
|
|
version = "1.0.0";
|
|
|
|
src = ./.;
|
|
nativeBuildInputs = [pkgs.gnumake];
|
|
buildInputs = [pkgs.openssl];
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ./proxytunnel $out/bin
|
|
'';
|
|
};
|
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
packages = [self.packages.x86_64-linux.default];
|
|
};
|
|
};
|
|
}
|