Jump to content

C: Difference between revisions

10 bytes added ,  16 March 2022
m
Fixes the nix-shell command usage
imported>Mic92
imported>Detailyang
m (Fixes the nix-shell command usage)
Line 40: Line 40:


<syntaxHighlight  lang=console>
<syntaxHighlight  lang=console>
$ cat > shell.nix <<EOF
$ cat > shell.nix <<EOF ;nix-shell
with import <nixpkgs> {};
with import <nixpkgs> {};
stdenv.mkDerivation {
stdenv.mkDerivation {
   name = "myenv";
   name = "myenv";
   buildInputs = [ zlib ];
   buildInputs = [ zlib ];
};
}
EOF
EOF
[nix-shell:~] $ echo $NIX_CFLAGS_COMPILE
[nix-shell:~] $ echo $NIX_CFLAGS_COMPILE
Anonymous user