mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-23 22:48:02 +03:00
5914156eb7
This makes hte examples more standalone and suitable for copy & paste
33 lines
869 B
Nix
33 lines
869 B
Nix
{
|
|
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 in ./packages/<name> are automatically added to the flake outputs
|
|
# e.g., 'packages/hello/default.nix' becomes '.#packages.hello'
|
|
packages.${system}.default = dream2nix.lib.evalModules {
|
|
packageSets.nixpkgs = inputs.dream2nix.inputs.nixpkgs.legacyPackages.${system};
|
|
modules = [
|
|
./default.nix
|
|
{
|
|
paths.projectRoot = ./.;
|
|
# can be changed to ".git" or "flake.nix" to get rid of .project-root
|
|
paths.projectRootFile = "flake.nix";
|
|
paths.package = ./.;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|