mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 04:58:21 +00:00
Update devshell to follow nixpkgs unstable branch
This commit is contained in:
parent
7d52a921dc
commit
c6d901c5b2
25
flake.nix
25
flake.nix
@ -1,6 +1,25 @@
|
|||||||
{
|
{
|
||||||
description = "The flake for this project.";
|
description = "The flake for this digital notebook.";
|
||||||
outputs = inputs@{ self, nixpkgs, ... }: {
|
inputs = {
|
||||||
devShell.x86_64-linux = import ./shell.nix { pkgs = import nixpkgs { system = "x86_64-linux"; }; };
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
foo-dogsquared-nixos-config.url = "github:foo-dogsquared/nixos-config";
|
||||||
|
foo-dogsquared-nixos-config.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
foo-dogsquared-nixos-config.inputs.flake-utils.follows = "flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs@{ self, nixpkgs, ... }: let
|
||||||
|
overlays = [
|
||||||
|
inputs.foo-dogsquared-nixos-config.overlays.default
|
||||||
|
];
|
||||||
|
defaultSystem = inputs.flake-utils.lib.system.x86_64-linux;
|
||||||
|
systems = with inputs.flake-utils.lib.system; [ defaultSystem ];
|
||||||
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
||||||
|
in {
|
||||||
|
devShells = forAllSystems (system: let
|
||||||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
|
in
|
||||||
|
{ default = import ./shell.nix { inherit pkgs; }; });
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user