diff options
| author | spiperac <[email protected]> | 2026-06-15 06:42:13 +0200 |
|---|---|---|
| committer | spiperac <[email protected]> | 2026-06-15 06:42:13 +0200 |
| commit | 0a477fd288d064d265395c88dbd0f261b723804e (patch) | |
| tree | 9b129f8f41c907285b89ed8385679934bb59c14f /flake.nix | |
Initial release
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fcc732f --- /dev/null +++ b/flake.nix @@ -0,0 +1,45 @@ +{ + description = "Shiv - HTTP/HTTPS interception proxy"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + fhs = pkgs.buildFHSEnv { + name = "fhs-run"; + targetPkgs = p: with p; [ glibc ]; + runScript = ""; + }; + in { + devShells.${system}.default = pkgs.mkShell { + buildInputs = with pkgs; [ + go + gcc + libxxf86vm + pkg-config + libx11 + libxcursor + libxrandr + libxinerama + libxi + libxxf86vm + wayland + wayland-protocols + libxkbcommon + libGL + libGLU + glibc + glibc.dev + fhs + fuse + ]; + shellHook = '' + export PATH=$PATH:$HOME/go/bin + export APPIMAGE_EXTRACT_AND_RUN=1 + if [ ! -f "$HOME/go/bin/fyne" ]; then + go install fyne.io/tools/cmd/fyne@latest + fi + ''; + }; + }; +} |
