Skip to content

Commit

Permalink
ad nix-shell build
Browse files Browse the repository at this point in the history
  • Loading branch information
dazz committed Dec 28, 2023
1 parent cf55d24 commit 53e63ec
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,11 @@ lint:

.PHONY: mermaid
mermaid:
@go run ./cmd/s6cli $(ARGS) mermaid
@go run ./cmd/s6cli $(ARGS) mermaid

.PHONY: test
test:
@go test -v ./...

nix:
@nix-shell --show-trace
17 changes: 17 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

let
nixpkgs = import <nixpkgs> {};
inherit (nixpkgs) pkgs; # AKA pkgs = nixpkgs.pkgs

s6-cli = pkgs.buildGoModule {
name = "s6-cli";
src = ./.;
vendorHash = "sha256-XjmoKtlcynjSLdikWVGdsn2y3SY3ximWmoe2wEMhfXs=";
};
in

pkgs.mkShell {
packages = [
s6-cli
];
}

0 comments on commit 53e63ec

Please sign in to comment.