Created
May 10, 2024 05:23
-
-
Save rgoulter/3f9f69839650e968fd3b9696111b0c2b to your computer and use it in GitHub Desktop.
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
{ pkgs ? import <nixpkgs> {} }: | |
pkgs.stdenv.mkDerivation { | |
pname = "stdenv-maketargets-demo"; | |
version = "0.0.0"; | |
src = ./.; | |
makeTargets = ["foo" "bar"]; | |
installPhase = '' | |
mkdir -p $out | |
''; | |
} |
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
.PHONY: all foo bar | |
all: | |
echo "true" | |
foo: | |
echo "foo" | |
bar: | |
exit 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment