Skip to content

Commit

Permalink
examples: rename repo examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Nov 7, 2023
1 parent 1c47a7c commit 24e81d5
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 38 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
Automate reproducible packaging for various language ecosystems
<br>
<a href="https://nix-community.github.io/dream2nix/">Documentation</a> |
<a href="https://github.com/nix-community/dream2nix/tree/main/examples/repo">Example Repo</a> |
<a href="https://github.com/nix-community/dream2nix/tree/main/examples/repo-flake">Example Repo Flake</a> |
<a href="https://github.com/nix-community/dream2nix/tree/main/examples/repo-with-packages">Example Repo</a> |
<a href="https://github.com/nix-community/dream2nix/tree/main/examples/repo-with-packages-flake">Example Repo Flake</a> |
<a href="https://github.com/nix-community/dream2nix/tree/main/examples/packages">Example Packages</a>
</p>

Expand Down
28 changes: 0 additions & 28 deletions examples/repo-single-package/flake.nix

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions modules/flake-parts/examples.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ in {
// {
# add repo templates
repo.description = "Dream2nix repo without flakes";
repo.path = ../../examples/repo;
repo.path = ../../examples/repo-with-packages;
repo-flake.description = "Dream2nix repo with flakes";
repo-flake.path = ../../examples/repo-flake;
repo-flake.path = ../../examples/repo-with-packages-flake;
};

perSystem = {
Expand All @@ -86,17 +86,17 @@ in {
(
(lib.mapAttrs (_: flakeFile: getPackage flakeFile) allExamples)
// {
example-repo = let
repo-with-packages = let
imported =
(import ../../examples/repo {
(import ../../examples/repo-with-packages {
dream2nixSource = ../..;
inherit pkgs;
})
.hello;
in
imported;
example-repo-flake =
(importFlake ../../examples/repo-flake/flake.nix).packages.${system}.hello;
repo-with-packages-flake =
(importFlake ../../examples/repo-with-packages-flake/flake.nix).packages.${system}.hello;
}
);

Expand Down
4 changes: 2 additions & 2 deletions modules/flake-parts/site/src/examples.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Examples for dream2nix

- [👉 example repository](https://github.com/nix-community/dream2nix/tree/main/examples/repo)
- [👉 example repository using flakes](https://github.com/nix-community/dream2nix/tree/main/examples/repo-flake)
- [👉 example repository](https://github.com/nix-community/dream2nix/tree/main/examples/repo-with-packages)
- [👉 example repository using flakes](https://github.com/nix-community/dream2nix/tree/main/examples/repo-with-packages-flake)
- [👉 example packages](https://github.com/nix-community/dream2nix/tree/main/examples/packages)
- [👉 basics](https://github.com/nix-community/dream2nix/tree/main/examples/packages/basics)
- [👉 single-language](https://github.com/nix-community/dream2nix/tree/main/examples/packages/single-language)
Expand Down

0 comments on commit 24e81d5

Please sign in to comment.