this repo has no description

add htmx to env with nix

Akshay ed031ce1 d7030857

Changed files
+22 -4
+13
flake.lock
··· 1 { 2 "nodes": { 3 "indigo": { 4 "flake": false, 5 "locked": { ··· 33 }, 34 "root": { 35 "inputs": { 36 "indigo": "indigo", 37 "nixpkgs": "nixpkgs" 38 }
··· 1 { 2 "nodes": { 3 + "htmx-src": { 4 + "flake": false, 5 + "locked": { 6 + "narHash": "sha256-nm6avZuEBg67SSyyZUhjpXVNstHHgUxrtBHqJgowU08=", 7 + "type": "file", 8 + "url": "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js" 9 + }, 10 + "original": { 11 + "type": "file", 12 + "url": "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js" 13 + } 14 + }, 15 "indigo": { 16 "flake": false, 17 "locked": { ··· 45 }, 46 "root": { 47 "inputs": { 48 + "htmx-src": "htmx-src", 49 "indigo": "indigo", 50 "nixpkgs": "nixpkgs" 51 }
+9 -4
flake.nix
··· 7 url = "github:oppiliappan/indigo"; 8 flake = false; 9 }; 10 }; 11 12 outputs = { 13 - self, 14 - nixpkgs, 15 - indigo, 16 }: let 17 supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; 18 forAllSystems = nixpkgs.lib.genAttrs supportedSystems; ··· 62 air-watcher = name: 63 pkgs.writeShellScriptBin "run" 64 '' 65 - ${pkgs.air}/bin/air -c /dev/null -build.cmd "${pkgs.go}/bin/go build -o ./out/${name}.out ./cmd/${name}/main.go" -build.bin "./out/${name}.out" 66 ''; 67 in { 68 watch-appview = {
··· 7 url = "github:oppiliappan/indigo"; 8 flake = false; 9 }; 10 + htmx-src = { 11 + url = "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"; 12 + flake = false; 13 + }; 14 }; 15 16 outputs = { 17 + self 18 + , nixpkgs 19 + , indigo 20 + , htmx-src 21 }: let 22 supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"]; 23 forAllSystems = nixpkgs.lib.genAttrs supportedSystems; ··· 67 air-watcher = name: 68 pkgs.writeShellScriptBin "run" 69 '' 70 + ${pkgs.air}/bin/air -c /dev/null -build.cmd "cp ${htmx-src} appview/pages/static/htmx.min.js && ${pkgs.tailwindcss}/bin/tailwindcss -i input.css -o ./appview/pages/static/tw.css && ${pkgs.go}/bin/go build -o ./out/${name}.out ./cmd/${name}/main.go" -build.bin "./out/${name}.out" 71 ''; 72 in { 73 watch-appview = {