feat(checks): add devShells
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
9ac0fdb00c
commit
1ce40f2c1a
5 changed files with 51 additions and 30 deletions
|
@ -4,14 +4,17 @@
|
||||||
}: let
|
}: let
|
||||||
apps = import ./apps {inherit pkgs self;};
|
apps = import ./apps {inherit pkgs self;};
|
||||||
devices = import ./devices {inherit pkgs self;};
|
devices = import ./devices {inherit pkgs self;};
|
||||||
|
devShells = import ./devShells {inherit pkgs self;};
|
||||||
packages = import ./packages {inherit pkgs self;};
|
packages = import ./packages {inherit pkgs self;};
|
||||||
in {
|
in {
|
||||||
# Allow homie to serve a binary cache for the devices away from servivi
|
# Allow homie to serve a binary cache for the devices away from servivi
|
||||||
aptDevices = import ./devices {
|
aptDevices =
|
||||||
onlyApt = true;
|
devShells
|
||||||
inherit pkgs self;
|
// (import ./devices {
|
||||||
};
|
onlyApt = true;
|
||||||
|
inherit pkgs self;
|
||||||
|
});
|
||||||
|
|
||||||
all = apps // devices // packages;
|
all = apps // devices // devShells // packages;
|
||||||
inherit apps packages devices;
|
inherit apps devices devShells packages;
|
||||||
}
|
}
|
||||||
|
|
10
checks/devShells/default.nix
Normal file
10
checks/devShells/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
self,
|
||||||
|
}: let
|
||||||
|
inherit (pkgs.lib) mapAttrs' nameValuePair;
|
||||||
|
in
|
||||||
|
mapAttrs'
|
||||||
|
(name: shell:
|
||||||
|
nameValuePair "devShell_${name}" shell)
|
||||||
|
self.devShells.${pkgs.system}
|
|
@ -15,5 +15,6 @@
|
||||||
self.nixosConfigurations;
|
self.nixosConfigurations;
|
||||||
in
|
in
|
||||||
mapAttrs'
|
mapAttrs'
|
||||||
(name: config: nameValuePair "device_${name}" config.config.system.build.toplevel)
|
(name: config:
|
||||||
|
nameValuePair "device_${name}" config.config.system.build.toplevel)
|
||||||
devices
|
devices
|
||||||
|
|
|
@ -13,5 +13,6 @@
|
||||||
self.packages.${pkgs.system};
|
self.packages.${pkgs.system};
|
||||||
in
|
in
|
||||||
mapAttrs'
|
mapAttrs'
|
||||||
(name: pkg: nameValuePair "pkg_${name}" pkg)
|
(name: pkg:
|
||||||
|
nameValuePair "pkg_${name}" pkg)
|
||||||
packages
|
packages
|
||||||
|
|
50
outputs.nix
50
outputs.nix
|
@ -145,9 +145,11 @@
|
||||||
import ./apps/nix/packages.nix {inherit pkgs self;});
|
import ./apps/nix/packages.nix {inherit pkgs self;});
|
||||||
|
|
||||||
devShells = perSystem (pkgs: let
|
devShells = perSystem (pkgs: let
|
||||||
|
inherit (builtins) attrValues;
|
||||||
|
|
||||||
bumpNpmDeps = pkgs.writeShellApplication {
|
bumpNpmDeps = pkgs.writeShellApplication {
|
||||||
name = "bumpNpmDeps";
|
name = "bumpNpmDeps";
|
||||||
runtimeInputs = builtins.attrValues {
|
runtimeInputs = attrValues {
|
||||||
inherit
|
inherit
|
||||||
(pkgs)
|
(pkgs)
|
||||||
prefetch-npm-deps
|
prefetch-npm-deps
|
||||||
|
@ -188,31 +190,35 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
node = pkgs.mkShell {
|
node = pkgs.mkShell {
|
||||||
packages =
|
packages = attrValues {
|
||||||
(builtins.attrValues {
|
inherit
|
||||||
inherit
|
(pkgs)
|
||||||
(pkgs)
|
nodejs_latest
|
||||||
nodejs_latest
|
;
|
||||||
;
|
|
||||||
})
|
inherit
|
||||||
++ [bumpNpmDeps];
|
bumpNpmDeps
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
subtitles-dev = pkgs.mkShell {
|
subtitles-dev = pkgs.mkShell {
|
||||||
packages =
|
packages = attrValues {
|
||||||
(builtins.attrValues {
|
inherit
|
||||||
inherit
|
(pkgs)
|
||||||
(pkgs)
|
nodejs_latest
|
||||||
nodejs_latest
|
ffmpeg-full
|
||||||
ffmpeg-full
|
;
|
||||||
;
|
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
(pkgs.nodePackages)
|
(pkgs.nodePackages)
|
||||||
ts-node
|
ts-node
|
||||||
;
|
;
|
||||||
})
|
|
||||||
++ [bumpNpmDeps];
|
inherit
|
||||||
|
bumpNpmDeps
|
||||||
|
;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue