mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 09:48:30 +02:00
docs: justfile
This commit is contained in:
11
Justfile
11
Justfile
@@ -1,6 +1,9 @@
|
|||||||
# just is a command runner, Justfile is very similar to Makefile, but simpler.
|
# just is a command runner, Justfile is very similar to Makefile, but simpler.
|
||||||
|
|
||||||
# use nushell for shell commands
|
# Use nushell for shell commands
|
||||||
|
# To usage this justfile, you need to enter a shell with just & nushell installed:
|
||||||
|
#
|
||||||
|
# nix shell nixpkgs#just nixpkgs#nushell
|
||||||
set shell := ["nu", "-c"]
|
set shell := ["nu", "-c"]
|
||||||
|
|
||||||
utils_nu := absolute_path("utils.nu")
|
utils_nu := absolute_path("utils.nu")
|
||||||
@@ -16,7 +19,7 @@ utils_nu := absolute_path("utils.nu")
|
|||||||
test:
|
test:
|
||||||
nix eval .#evalTests --show-trace --print-build-logs --verbose
|
nix eval .#evalTests --show-trace --print-build-logs --verbose
|
||||||
|
|
||||||
# update all the flake inputs
|
# Update all the flake inputs
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
up:
|
up:
|
||||||
nix flake update
|
nix flake update
|
||||||
@@ -52,13 +55,13 @@ gc:
|
|||||||
[linux]
|
[linux]
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
shell:
|
shell:
|
||||||
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#just nixpkgs#nushell nixpkgs#colmena
|
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#colmena
|
||||||
|
|
||||||
# Enter a shell session which has all the necessary tools for this flake
|
# Enter a shell session which has all the necessary tools for this flake
|
||||||
[macos]
|
[macos]
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
shell:
|
shell:
|
||||||
nix shell nixpkgs#git nixpkgs#neovim nixpkgs#just nixpkgs#nushell
|
nix shell nixpkgs#git nixpkgs#neovim
|
||||||
|
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
fmt:
|
fmt:
|
||||||
|
|||||||
Reference in New Issue
Block a user