Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(repo): Add devShell for tooling (#299)

cc @crasm

authored by

Victor Borja and committed by
GitHub
af881e34 e62bc38b

+34 -6
+3 -2
docs/src/content/docs/contributing.md
··· 45 45 Next, enter a nix shell. 46 46 ``` 47 47 ## Classic tooling 48 - $ nix-shell -p just nodejs pnpm 48 + $ nix-shell 49 + 49 50 ## or flakes tooling! 50 - $ nix shell 'nixpkgs#just nixpkgs#nodejs nixpkgs#pnpm' 51 + $ nix develop 51 52 ``` 52 53 53 54 Then, change to the docs directory and install the necessary dependencies to `docs/node_modules`.
+2 -2
nix/default.nix
··· 26 26 { 27 27 __functor = _: den-lib; 28 28 lib = den-lib; 29 + namespace = import ./lib/namespace.nix; 29 30 30 31 inherit nixModule templates; 31 - namespace = import ./lib/namespace.nix; 32 - packages = import ./flake-packages.nix; 32 + inherit (import ./flake-packages.nix) packages devShells; 33 33 34 34 # flake-parts conventions 35 35 flakeModule = flakeModules.default;
+14 -2
nix/flake-packages.nix
··· 5 5 url = "https://github.com/edolstra/flake-compat/archive/${rev}.tar.gz"; 6 6 sha256 = narHash; 7 7 }; 8 + 8 9 flake = import compat { src = ../templates/example; }; 9 - pkgs = flake.outputs.packages; 10 + lib = import (flake.outputs.inputs.nixpkgs + "/lib"); 11 + eachSystem = lib.genAttrs lib.systems.flakeExposed; 12 + 13 + packages = eachSystem (system: { 14 + default = flake.outputs.packages.${system}.vm; 15 + }); 16 + 17 + devShells = eachSystem (system: { 18 + default = import ../shell.nix { 19 + pkgs = import flake.outputs.inputs.nixpkgs { inherit system; }; 20 + }; 21 + }); 10 22 in 11 23 { 12 - x86_64-linux.default = pkgs.x86_64-linux.vm; 24 + inherit packages devShells; 13 25 }
+15
shell.nix
··· 1 + { 2 + pkgs ? import <nixpkgs> { }, 3 + lib ? pkgs.lib, 4 + ... 5 + }: 6 + pkgs.mkShell { 7 + buildInputs = with pkgs; [ 8 + just 9 + nix-unit 10 + npins 11 + pnpm 12 + nodejs 13 + hyperfine 14 + ]; 15 + }