mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
shells: adopt packages from other devshells if applicable
This commit is contained in:
parent
9e6fbafa6a
commit
14bdbae603
@ -2,8 +2,12 @@
|
||||
, go
|
||||
, gofumpt
|
||||
, gopls
|
||||
, callPackage
|
||||
}:
|
||||
|
||||
let
|
||||
nodejsDevshell = callPackage ./nodejs.nix { };
|
||||
in
|
||||
mkShell {
|
||||
packages = [
|
||||
go
|
||||
@ -11,5 +15,5 @@ mkShell {
|
||||
gopls
|
||||
];
|
||||
|
||||
inputsFrom = [ go ];
|
||||
inputsFrom = [ go nodejsDevshell ];
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# My usual toolchain for developing Hugo projects.
|
||||
{ mkShell
|
||||
, callPackage
|
||||
, hugo
|
||||
, asciidoctor
|
||||
, pandoc
|
||||
@ -9,6 +10,10 @@
|
||||
, imagemagick
|
||||
}:
|
||||
|
||||
let
|
||||
nodejsDevshell = callPackage ./nodejs.nix { };
|
||||
goDevshell = callPackage ./go.nix { };
|
||||
in
|
||||
mkShell {
|
||||
packages = [
|
||||
asciidoctor # Some sites use this.
|
||||
@ -21,7 +26,7 @@ mkShell {
|
||||
];
|
||||
|
||||
inputsFrom = [
|
||||
go
|
||||
nodejs_latest
|
||||
nodejsDevshell
|
||||
goDevshell
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user