fixed flake shell commands

This commit is contained in:
specCon18 2023-08-04 23:11:42 -04:00
parent 6cd610e727
commit 153276f49c
4 changed files with 12 additions and 50 deletions

3
.gitignore vendored
View file

@ -1,3 +1,4 @@
/target /target
/node_modules /node_modules
.direnv .direnv
result

View file

@ -534,32 +534,10 @@ video {
--tw-backdrop-sepia: ; --tw-backdrop-sepia: ;
} }
.relative {
position: relative;
}
.my-4 {
margin-top: 1rem;
margin-bottom: 1rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.mb-4 {
margin-bottom: 1rem;
}
.flex { .flex {
display: flex; display: flex;
} }
.flex-row {
flex-direction: row;
}
.flex-col { .flex-col {
flex-direction: column; flex-direction: column;
} }
@ -572,8 +550,9 @@ video {
border-radius: 0.5rem; border-radius: 0.5rem;
} }
.border { .bg-purple-500 {
border-width: 1px; --tw-bg-opacity: 1;
background-color: rgb(168 85 247 / var(--tw-bg-opacity));
} }
.bg-slate-700 { .bg-slate-700 {
@ -581,28 +560,10 @@ video {
background-color: rgb(51 65 85 / var(--tw-bg-opacity)); background-color: rgb(51 65 85 / var(--tw-bg-opacity));
} }
.bg-green-500 {
--tw-bg-opacity: 1;
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}
.bg-purple-500 {
--tw-bg-opacity: 1;
background-color: rgb(168 85 247 / var(--tw-bg-opacity));
}
.p-4 { .p-4 {
padding: 1rem; padding: 1rem;
} }
.pb-4 {
padding-bottom: 1rem;
}
.pb-12 {
padding-bottom: 3rem;
}
.text-2xl { .text-2xl {
font-size: 1.5rem; font-size: 1.5rem;
line-height: 2rem; line-height: 2rem;

8
flake.lock generated
View file

@ -2,16 +2,16 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1690881714, "lastModified": 1685566663,
"narHash": "sha256-h/nXluEqdiQHs1oSgkOOWF+j8gcJMWhwnZ9PFabN6q0=", "narHash": "sha256-btHN1czJ6rzteeCuE/PNrdssqYD2nIA4w48miQAFloM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e1960bc196baf6881340d53dccb203a951745a2", "rev": "4ecab3273592f27479a583fb6d975d4aba3486fe",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-unstable", "ref": "23.05",
"type": "indirect" "type": "indirect"
} }
}, },

View file

@ -12,12 +12,12 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
set -e set -e
export PATH=${pkgs.nodejs_20}/bin:${pkgs.nodePackages_latest.pnpm}/bin:$PATH export PATH=${pkgs.nodejs_20}/bin:${pkgs.nodePackages_latest.pnpm}/bin:$PATH
pnpm dlx tailwindcss -i styles/tailwind.css -o assets/main.css --watch pnpm dlx tailwindcss -i src/styles/tailwind.css -o assets/main.css --watch
''; '';
run-dev = pkgs.writeShellScriptBin "run-dev" '' run-dev = pkgs.writeShellScriptBin "run-dev" ''
#!/usr/bin/env zsh #!/usr/bin/env zsh
set -e set -e
cargo run test.json cargo run test_data/test.json
''; '';
in { in {
@ -30,7 +30,7 @@
pkgconfig pkgconfig
rustc rustc
cargo cargo
nodejs-20 nodejs_20
nodePackages_latest.pnpm nodePackages_latest.pnpm
]; ];