diff options
Diffstat (limited to 'tools/govanity/flake.nix')
-rw-r--r-- | tools/govanity/flake.nix | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/govanity/flake.nix b/tools/govanity/flake.nix deleted file mode 100644 index d2c2254..0000000 --- a/tools/govanity/flake.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ - description = "govanity"; - - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/release-21.11"; - utils.url = "github:numtide/flake-utils"; - }; - - outputs = { self, utils, nixpkgs, pre-commit-hooks }: - utils.lib.eachDefaultSystem (system: - let pkgs = nixpkgs.legacyPackages.${system}; - in { - - defaultPackage = self.packages.${system}.vanity; - - packages.vanity = pkgs.buildGoModule { - pname = "vanity"; - version = "0.0.1"; - src = ./.; - vendorSha256 = "sha256-iu2QE+vvenFWpOOz1NHVQHudiWkvkKqZvD4ZX4Xa1sY="; - nativeBuildInputs = with pkgs; [ go ]; - }; - - apps = { - deploy = pkgs.pkgs.writeShellScriptBin "run-deploy" '' - set -euxo pipefail - export PATH=${ - pkgs.lib.makeBinPath [ pkgs.go pkgs.git pkgs.jq pkgs.flyctl ] - }:$PATH - bash ./scripts/deploy.sh - ''; - }; - - devShell = with pkgs; - mkShell { nativeBuildInputs = [ git go gopls golangci-lint bash ]; }; - }); -} |