Skip to content

Commit

Permalink
Merge pull request #389 from DeterminateSystems/fix-cpp-references
Browse files Browse the repository at this point in the history
Fix dev shell name for C++
  • Loading branch information
lucperkins authored Dec 3, 2024
2 parents f118743 + c1c43a7 commit e9d20c3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
20 changes: 0 additions & 20 deletions src/components/mdx/NixDevelop.astro

This file was deleted.

30 changes: 28 additions & 2 deletions src/content/start/3.nix-develop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ Select one of these programming languages:

Now explore the Nix development environment for <Language />:

<NixDevelop />

<SpecificLanguage lang="C++">
```shell title="Explore a development environment for C++"
nix develop "github:DeterminateSystems/zero-to-nix#cpp"
```

First, let's see the Nix store path for [CMake]:

```shell title="Get path information for CMake"
Expand All @@ -125,6 +127,10 @@ cmake --version

</SpecificLanguage>
<SpecificLanguage lang="Haskell">
```shell title="Explore a development environment for Haskell"
nix develop "github:DeterminateSystems/zero-to-nix#haskell"
```

First, let's see the Nix store path for the [Glasgow Haskell Compiler][ghc] (GHC):

```shell title="See the store path for GHC"
Expand All @@ -139,6 +145,10 @@ ghc --version

</SpecificLanguage>
<SpecificLanguage lang="JavaScript">
```shell title="Explore a development environment for JavaScript"
nix develop "github:DeterminateSystems/zero-to-nix#javascript"
```

First, let's see the Nix store path for [Node.js]:

```shell title="See the store path for Node.js"
Expand All @@ -153,6 +163,10 @@ node --eval "console.log('1 + 1 = ' + (1 + 1))"

</SpecificLanguage>
<SpecificLanguage lang="Python">
```shell title="Explore a development environment for Python"
nix develop "github:DeterminateSystems/zero-to-nix#python"
```

First, let's see the Nix store path for Python:

```shell title="See the store path for Python"
Expand All @@ -167,6 +181,10 @@ python -c "print(1 + 1)"

</SpecificLanguage>
<SpecificLanguage lang="Go">
```shell title="Explore a development environment for Go"
nix develop "github:DeterminateSystems/zero-to-nix#go"
```

First, let's see the Nix store path for the [Go] CLI:

```shell title="See the store path for Go"
Expand All @@ -182,6 +200,10 @@ go version
You should get 1.22.5.
</SpecificLanguage>
<SpecificLanguage lang="Rust">
```shell title="Explore a development environment for Rust"
nix develop "github:DeterminateSystems/zero-to-nix#rust"
```

First, let's see the Nix store path for [cargo]:

```shell title="See the store path for Cargo"
Expand All @@ -200,6 +222,10 @@ You should see `Hello, world!`.

</SpecificLanguage>
<SpecificLanguage lang="Scala">
```shell title="Explore a development environment for Scala"
nix develop "github:DeterminateSystems/zero-to-nix#scala"
```

First, let's see the Nix store path for [sbt]:

```shell title="See the store path for sbt"
Expand Down
2 changes: 0 additions & 2 deletions src/pages/start/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import ExternalSources from "../../components/ExternalSources.astro";
import Language from "../../components/mdx/Language.astro";
import Languages from "../../components/mdx/Languages.astro";
import Layout from "../../layouts/Layout.astro";
import NixDevelop from "../../components/mdx/NixDevelop.astro";
import NixStorePath from "../../components/mdx/NixStorePath.astro";
import SpecificLanguage from "../../components/mdx/SpecificLanguage.astro";
import HorizontalContainer from "../../components/HorizontalContainer.astro";
Expand Down Expand Up @@ -61,7 +60,6 @@ const numQuickStartPages = (await getCollection("start")).length;
ExternalSources,
Language,
Languages,
NixDevelop,
NixStorePath,
SpecificLanguage,
}}
Expand Down

0 comments on commit e9d20c3

Please sign in to comment.