Skip to content

Instantly share code, notes, and snippets.

@theneosloth
Created May 1, 2023 04:56
Show Gist options
  • Save theneosloth/47cf34949e223ff1d113c6dd5b84a0a3 to your computer and use it in GitHub Desktop.
Save theneosloth/47cf34949e223ff1d113c6dd5b84a0a3 to your computer and use it in GitHub Desktop.
Use nix-shell in a makefile
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