mirror of
https://github.com/nix-community/dream2nix.git
synced 2025-01-09 00:08:02 +03:00
examples: rename repo examples
This commit is contained in:
parent
1c47a7cfba
commit
24e81d5ce8
@ -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>
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
description = "My flake with dream2nix packages";
|
||||
|
||||
inputs = {
|
||||
dream2nix.url = "github:nix-community/dream2nix";
|
||||
nixpkgs.follows = "dream2nix/nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
dream2nix,
|
||||
nixpkgs,
|
||||
...
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
in {
|
||||
# all packages defined inside ./packages/
|
||||
packages.${system}.default = nixpkgs.lib.evalModules {
|
||||
modules = [];
|
||||
|
||||
projectRoot = ./.;
|
||||
# can be changed to ".git" or "flake.nix" to get rid of .project-root
|
||||
projectRootFile = "flake.nix";
|
||||
packagesDir = ./packages;
|
||||
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
|
||||
};
|
||||
};
|
||||
}
|
@ -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 = {
|
||||
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user