mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 14:31:55 +03:00
chore: lib.nix remove projectsJson from flake outputs
This commit is contained in:
parent
e48421c830
commit
cb641555c8
@ -60,6 +60,7 @@ to create a `flake.nix`:
|
||||
systemsFromFile = ./nix_systems;
|
||||
config.projectRoot = ./.;
|
||||
source = ./.;
|
||||
projects = ./projects.toml;
|
||||
};
|
||||
}
|
||||
```
|
||||
@ -87,12 +88,11 @@ git+file:///tmp/my_project
|
||||
│ └───x86_64-linux
|
||||
│ ├───cowsay: development environment 'nix-shell'
|
||||
│ └───default: development environment 'nix-shell'
|
||||
├───packages
|
||||
│ └───x86_64-linux
|
||||
│ ├───cowsay: package 'cowsay-1.5.0'
|
||||
│ ├───default: package 'cowsay-1.5.0'
|
||||
│ └───resolveImpure: package 'resolve'
|
||||
└───projectsJson: unknown
|
||||
└───packages
|
||||
└───x86_64-linux
|
||||
├───cowsay: package 'cowsay-1.5.0'
|
||||
├───default: package 'cowsay-1.5.0'
|
||||
└───resolveImpure: package 'resolve'
|
||||
```
|
||||
|
||||
We can see that:
|
||||
@ -207,12 +207,11 @@ git+file:///tmp/my_project
|
||||
│ └───x86_64-linux
|
||||
│ ├───cowsay: development environment 'nix-shell'
|
||||
│ └───default: development environment 'nix-shell'
|
||||
├───packages
|
||||
│ └───x86_64-linux
|
||||
│ ├───cowsay: package 'cowsay-1.5.0'
|
||||
│ ├───default: package 'cowsay-1.5.0'
|
||||
│ └───resolveImpure: package 'resolve'
|
||||
└───projectsJson: unknown
|
||||
└───packages
|
||||
└───x86_64-linux
|
||||
├───cowsay: package 'cowsay-1.5.0'
|
||||
├───default: package 'cowsay-1.5.0'
|
||||
└───resolveImpure: package 'resolve'
|
||||
```
|
||||
When we enter the `cowsay` development shell, we will get `node` in our
|
||||
`PATH`, together with all the binaries from our dependencies packages.
|
||||
|
@ -42,11 +42,10 @@ warning: Git tree '/tmp/my_project' is dirty
|
||||
warning: creating lock file '/tmp/my_project/flake.lock'
|
||||
warning: Git tree '/tmp/my_project' is dirty
|
||||
git+file:///tmp/my_project
|
||||
├───packages
|
||||
│ └───x86_64-linux
|
||||
│ ├───main: package 'main'
|
||||
│ └───resolveImpure: package 'resolve'
|
||||
└───projectsJson: unknown
|
||||
└───packages
|
||||
└───x86_64-linux
|
||||
├───main: package 'main'
|
||||
└───resolveImpure: package 'resolve'
|
||||
```
|
||||
|
||||
What we can observe here:
|
||||
@ -57,11 +56,10 @@ Our flake.nix imported external libraries. The versions of these libraries have
|
||||
1.
|
||||
```
|
||||
git+file:///tmp/my_project
|
||||
├───packages
|
||||
│ └───x86_64-linux
|
||||
│ ├───main: package 'main'
|
||||
│ └───resolveImpure: package 'resolve'
|
||||
└───projectsJson: unknown
|
||||
└───packages
|
||||
└───x86_64-linux
|
||||
├───main: package 'main'
|
||||
└───resolveImpure: package 'resolve'
|
||||
```
|
||||
Similar like a .json file defines a structure of data, our flake.nix defines a structure of `nix attributes` which are things that we can build or run with nix.
|
||||
We can see that it contains packages for my current platform `x86_64-linux`.
|
||||
|
@ -195,12 +195,8 @@
|
||||
(allOutputs: output: lib.recursiveUpdate allOutputs output)
|
||||
{}
|
||||
flakifiedOutputsList;
|
||||
|
||||
flakeOutputs =
|
||||
{projectsJson = l.toJSON finalProjects;}
|
||||
// flakeOutputsBuilders;
|
||||
in
|
||||
flakeOutputs;
|
||||
flakeOutputsBuilders;
|
||||
|
||||
makeFlakeOutputsForIndexes = {
|
||||
systems ? [],
|
||||
|
Loading…
Reference in New Issue
Block a user