Skip to content

Commit

Permalink
fix(make): add target adhocpkgs (#27)
Browse files Browse the repository at this point in the history
provide comand reference for installing ad hoc packages from nixpkgs
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Dec 30, 2023
1 parent 0544de1 commit 03232a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ DEVCONTAINER_IMAGE ?= ghcr.io/sciexp/flytezendev
drundc: ## Run devcontainer. make drundc DEVCONTAINER_IMAGE=
docker run --rm -it $(DEVCONTAINER_IMAGE)

adhocpkgs: ## Install adhoc nix packages. make adhocpkgs ADHOC_NIX_PKGS="gnugrep fzf"
nix profile list
$(foreach pkg, $(ADHOC_NIX_PKGS), nix profile install nixpkgs#$(pkg);)
nix profile list

.PHONY: jupyter
jupyter: ## Run jupyter lab in devcontainer. make jupyter DEVCONTAINER_IMAGE=ghcr.io/sciexp/flytezendev@sha256:055bb57be472144bb140e20870320da8d9fa39daf69a57d2464596b974d34138
@echo "Attempting to start jupyter lab in"
Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@
url = "https://github.com/${gitHubOrg}/${packageName}.git";
# the ref is not strictly required when specifying a rev but it should
# be included whenever possible or it may be necessary to include
# ref = "main";
ref = "main";
# allRefs = true;
ref = "26-nix-profile";
# ref = "NN-feature";
# the rev can be omitted transiently in development to track the HEAD
# of a ref but doing so requires `--impure` image builds (this may
# already be required for other reasons, e.g. `builtins.getEnv`)
Expand Down

0 comments on commit 03232a1

Please sign in to comment.