Something went wrong. Try again.
A simple static site generator
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ description = "go devshell and package, created by scaffolder";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; };
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; in { devShells.default = pkgs.mkShell { name = "go-devshell";
packages = with pkgs; [ go gopls gotools golangci-lint delve just ]; };
packages.biscuit = pkgs.buildGoModule { pname = "biscuit"; version = "0.2.4";
src = self;
vendorHash = "sha256-eyOOyNW7PqQSfXaeKj7/GghcyKwP5e8XHKjl87myGvQ=";
nativeBuildInputs = [ pkgs.gcc ];
subPackages = [ "." ]; ldflags = [ "-s" "-w" ];
meta = with pkgs.lib; { description = "A simple static site generator"; license = licenses.mit; platforms = platforms.all; }; };
apps.biscuit = { type = "app"; program = "${self.packages.${pkgs.stdenv.hostPlatform.system}.biscuit}/bin/biscuit"; }; });}