mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 22:48:02 +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;
|
systemsFromFile = ./nix_systems;
|
||||||
config.projectRoot = ./.;
|
config.projectRoot = ./.;
|
||||||
source = ./.;
|
source = ./.;
|
||||||
|
projects = ./projects.toml;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -87,12 +88,11 @@ git+file:///tmp/my_project
|
|||||||
│ └───x86_64-linux
|
│ └───x86_64-linux
|
||||||
│ ├───cowsay: development environment 'nix-shell'
|
│ ├───cowsay: development environment 'nix-shell'
|
||||||
│ └───default: development environment 'nix-shell'
|
│ └───default: development environment 'nix-shell'
|
||||||
├───packages
|
└───packages
|
||||||
│ └───x86_64-linux
|
└───x86_64-linux
|
||||||
│ ├───cowsay: package 'cowsay-1.5.0'
|
├───cowsay: package 'cowsay-1.5.0'
|
||||||
│ ├───default: package 'cowsay-1.5.0'
|
├───default: package 'cowsay-1.5.0'
|
||||||
│ └───resolveImpure: package 'resolve'
|
└───resolveImpure: package 'resolve'
|
||||||
└───projectsJson: unknown
|
|
||||||
```
|
```
|
||||||
|
|
||||||
We can see that:
|
We can see that:
|
||||||
@ -207,12 +207,11 @@ git+file:///tmp/my_project
|
|||||||
│ └───x86_64-linux
|
│ └───x86_64-linux
|
||||||
│ ├───cowsay: development environment 'nix-shell'
|
│ ├───cowsay: development environment 'nix-shell'
|
||||||
│ └───default: development environment 'nix-shell'
|
│ └───default: development environment 'nix-shell'
|
||||||
├───packages
|
└───packages
|
||||||
│ └───x86_64-linux
|
└───x86_64-linux
|
||||||
│ ├───cowsay: package 'cowsay-1.5.0'
|
├───cowsay: package 'cowsay-1.5.0'
|
||||||
│ ├───default: package 'cowsay-1.5.0'
|
├───default: package 'cowsay-1.5.0'
|
||||||
│ └───resolveImpure: package 'resolve'
|
└───resolveImpure: package 'resolve'
|
||||||
└───projectsJson: unknown
|
|
||||||
```
|
```
|
||||||
When we enter the `cowsay` development shell, we will get `node` in our
|
When we enter the `cowsay` development shell, we will get `node` in our
|
||||||
`PATH`, together with all the binaries from our dependencies packages.
|
`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: creating lock file '/tmp/my_project/flake.lock'
|
||||||
warning: Git tree '/tmp/my_project' is dirty
|
warning: Git tree '/tmp/my_project' is dirty
|
||||||
git+file:///tmp/my_project
|
git+file:///tmp/my_project
|
||||||
├───packages
|
└───packages
|
||||||
│ └───x86_64-linux
|
└───x86_64-linux
|
||||||
│ ├───main: package 'main'
|
├───main: package 'main'
|
||||||
│ └───resolveImpure: package 'resolve'
|
└───resolveImpure: package 'resolve'
|
||||||
└───projectsJson: unknown
|
|
||||||
```
|
```
|
||||||
|
|
||||||
What we can observe here:
|
What we can observe here:
|
||||||
@ -57,11 +56,10 @@ Our flake.nix imported external libraries. The versions of these libraries have
|
|||||||
1.
|
1.
|
||||||
```
|
```
|
||||||
git+file:///tmp/my_project
|
git+file:///tmp/my_project
|
||||||
├───packages
|
└───packages
|
||||||
│ └───x86_64-linux
|
└───x86_64-linux
|
||||||
│ ├───main: package 'main'
|
├───main: package 'main'
|
||||||
│ └───resolveImpure: package 'resolve'
|
└───resolveImpure: package 'resolve'
|
||||||
└───projectsJson: unknown
|
|
||||||
```
|
```
|
||||||
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.
|
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`.
|
We can see that it contains packages for my current platform `x86_64-linux`.
|
||||||
|
@ -195,12 +195,8 @@
|
|||||||
(allOutputs: output: lib.recursiveUpdate allOutputs output)
|
(allOutputs: output: lib.recursiveUpdate allOutputs output)
|
||||||
{}
|
{}
|
||||||
flakifiedOutputsList;
|
flakifiedOutputsList;
|
||||||
|
|
||||||
flakeOutputs =
|
|
||||||
{projectsJson = l.toJSON finalProjects;}
|
|
||||||
// flakeOutputsBuilders;
|
|
||||||
in
|
in
|
||||||
flakeOutputs;
|
flakeOutputsBuilders;
|
||||||
|
|
||||||
makeFlakeOutputsForIndexes = {
|
makeFlakeOutputsForIndexes = {
|
||||||
systems ? [],
|
systems ? [],
|
||||||
|
Loading…
Reference in New Issue
Block a user