mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 17:52:33 +02:00
2225afd9ee
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
description = "Spilltea: A minimal, terminal-based HTTP(S) proxy for pentesters and CTF players.";
|
|
|
|
inputs = {nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
}: let
|
|
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
|
|
|
forAllSystems = f:
|
|
nixpkgs.lib.genAttrs supportedSystems
|
|
(system: f system (import nixpkgs {inherit system;}));
|
|
|
|
pname = "spilltea";
|
|
version = "0.0.5";
|
|
|
|
ldflags = ["-s" "-w" "-X main.version=${version}"];
|
|
in {
|
|
packages = forAllSystems (system: pkgs: let
|
|
pkg = pkgs.buildGoModule {
|
|
inherit pname version ldflags;
|
|
|
|
src = ./.;
|
|
outputs = ["out"];
|
|
|
|
vendorHash = "sha256-1iPwFsyzdonak9EWMRnudwcCQZfI+Uvre38+puG4s0s=";
|
|
|
|
meta = with pkgs.lib; {
|
|
description = "A minimal, terminal-based HTTP(S) proxy for pentesters and CTF players.";
|
|
homepage = "https://github.com/anotherhadi/spilltea";
|
|
platforms = platforms.unix;
|
|
};
|
|
};
|
|
in {
|
|
"${pname}" = pkg;
|
|
default = pkg;
|
|
});
|
|
|
|
devShells = forAllSystems (system: pkgs: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
go
|
|
python3
|
|
lefthook
|
|
doctoc
|
|
];
|
|
|
|
shellHook = ''
|
|
lefthook install
|
|
'';
|
|
};
|
|
});
|
|
};
|
|
}
|