all repos — homestead @ 75fea15e46ff656e6dbaeca1c07ac7ab2b46ae67

Code for my website

add and check licenses

Alan Pearce
commit

75fea15e46ff656e6dbaeca1c07ac7ab2b46ae67

parent

e80acc675c281e83166752ef0ff452a8073e9aae

2 files changed, 23 insertions(+), 0 deletions(-)

jump to
A LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2024 Alan Pearce <alan@alanpearce.eu> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.
M flake.nixflake.nix
@@ -29,6 +29,7 @@ packages = with pkgs; [
gopls gotools go-tools + go-licenses gomod2nix.packages.${system}.default gci flyctl
@@ -37,6 +38,9 @@ ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -i server.go -i public -r go run ./cmd/build'
'') (writeShellScriptBin "watch-server" '' ${pkgs.watchexec}/bin/watchexec -r -w flake.nix --shell fish 'direnv exec . watchexec -r go run ./server.go' + '') + (writeShellScriptBin "check-licenses" '' + ${pkgs.go-licenses}/bin/go-licenses check --include_tests ./... --disallowed_types=restricted,forbidden '') ] ++ nativeBuildInputs; };