Created
May 1, 2023 04:56
-
-
Save theneosloth/47cf34949e223ff1d113c6dd5b84a0a3 to your computer and use it in GitHub Desktop.
Use nix-shell in a makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL := /bin/sh | |
export PATH := $(shell nix-shell -p openapi-generator-cli --run 'echo $$PATH') | |
output: | |
mkdir -p output && cd output && openapi-generator-cli generate -i $URL -g clojure | |
clean: | |
rm -r output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment