forked from tangled.org/core
this repo has no description

add htmx to env with nix

Changed files
+22 -4
+13
flake.lock
···
{
"nodes": {
"indigo": {
"flake": false,
"locked": {
···
},
"root": {
"inputs": {
"indigo": "indigo",
"nixpkgs": "nixpkgs"
}
···
{
"nodes": {
+
"htmx-src": {
+
"flake": false,
+
"locked": {
+
"narHash": "sha256-nm6avZuEBg67SSyyZUhjpXVNstHHgUxrtBHqJgowU08=",
+
"type": "file",
+
"url": "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"
+
},
+
"original": {
+
"type": "file",
+
"url": "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js"
+
}
+
},
"indigo": {
"flake": false,
"locked": {
···
},
"root": {
"inputs": {
+
"htmx-src": "htmx-src",
"indigo": "indigo",
"nixpkgs": "nixpkgs"
}
+9 -4
flake.nix
···
url = "github:oppiliappan/indigo";
flake = false;
};
};
outputs = {
-
self,
-
nixpkgs,
-
indigo,
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
···
air-watcher = name:
pkgs.writeShellScriptBin "run"
''
-
${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"
'';
in {
watch-appview = {
···
url = "github:oppiliappan/indigo";
flake = false;
};
+
htmx-src = {
+
url = "https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js";
+
flake = false;
+
};
};
outputs = {
+
self
+
, nixpkgs
+
, indigo
+
, htmx-src
}: let
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
···
air-watcher = name:
pkgs.writeShellScriptBin "run"
''
+
${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"
'';
in {
watch-appview = {