Fix garnix errors
- Remove non-derivations from packages
- Disable devshell evaluation in CI
diff --git a/flake.nix b/flake.nix
index b24354d..49b72d0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -48,19 +48,21 @@
];
};
- processes.clamav.exec = let
+ processes.clamav.exec =
+ let
clamd_config = pkgs.writeText "clamd.conf" ''
- TCPSocket 3310
- PidFile /tmp/clamav-nucleus.pid
- DatabaseDirectory ${config.env.DEVENV_STATE}/clamav/db
- TemporaryDirectory /tmp
- Foreground true
+ TCPSocket 3310
+ PidFile /tmp/clamav-nucleus.pid
+ DatabaseDirectory ${config.env.DEVENV_STATE}/clamav/db
+ TemporaryDirectory /tmp
+ Foreground true
'';
freshclam_config = pkgs.writeText "freshclam.conf" ''
- DatabaseDirectory ${config.env.DEVENV_STATE}/clamav/db
- DatabaseMirror database.clamav.net
+ DatabaseDirectory ${config.env.DEVENV_STATE}/clamav/db
+ DatabaseMirror database.clamav.net
'';
- in "mkdir -p $DEVENV_STATE/clamav/db && ${pkgs.clamav}/bin/freshclam --config ${freshclam_config} || true; ${pkgs.clamav}/bin/clamd -c ${clamd_config}";
+ in
+ "mkdir -p $DEVENV_STATE/clamav/db && ${pkgs.clamav}/bin/freshclam --config ${freshclam_config} || true; ${pkgs.clamav}/bin/clamd -c ${clamd_config}";
})
];
};
@@ -73,44 +75,44 @@
lib = pkgs.lib;
in
rec {
- node_modules = lib.pipe
- {
- src = ./.;
- linkDevDependencies = true;
- overrides = pnpm2nix.defaultPnpmOverrides.x86_64-linux // {
- canvas = (drv: drv.overrideAttrs (oldAttrs: {
- nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.pkg-config ];
- buildInputs = oldAttrs.buildInputs ++ [
- pkgs.pixman
- pkgs.cairo.dev
- pkgs.libpng.dev
- pkgs.gnome2.pango.dev
- pkgs.glib.dev
- pkgs.harfbuzz.dev
- pkgs.freetype.dev
- ];
- }));
-
- "@tensorflow/tfjs-node" = (drv: drv.overrideAttrs (oldAttrs: {
- buildInputs = oldAttrs.buildInputs ++ [
- pkgs.libtensorflow
- ];
-
- preBuild = ''
- mkdir -p node_modules/@tensorflow/tfjs-node/deps/lib
- ln -s ${pkgs.libtensorflow}/lib/libtensorflow.so.2 node_modules/@tensorflow/tfjs-node/deps/lib/libtensorflow.so.2.9.1
- '';
- }));
- };
- } [
- (pnpm2nix.mkPnpmPackage.x86_64-linux)
- (drv: builtins.readFile "${drv}/nix-support/propagated-build-inputs")
- (path: "${path}/node_modules")
- ];
-
nucleus =
let
packageJSON = (builtins.fromJSON (builtins.readFile ./package.json));
+ node_modules = lib.pipe
+ {
+ src = ./.;
+ linkDevDependencies = true;
+ overrides = pnpm2nix.defaultPnpmOverrides.x86_64-linux // {
+ canvas = (drv: drv.overrideAttrs (oldAttrs: {
+ nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.pkg-config ];
+ buildInputs = oldAttrs.buildInputs ++ [
+ pkgs.pixman
+ pkgs.cairo.dev
+ pkgs.libpng.dev
+ pkgs.gnome2.pango.dev
+ pkgs.glib.dev
+ pkgs.harfbuzz.dev
+ pkgs.freetype.dev
+ ];
+ }));
+
+ "@tensorflow/tfjs-node" = (drv: drv.overrideAttrs (oldAttrs: {
+ buildInputs = oldAttrs.buildInputs ++ [
+ pkgs.libtensorflow
+ ];
+
+ preBuild = ''
+ mkdir -p node_modules/@tensorflow/tfjs-node/deps/lib
+ ln -s ${pkgs.libtensorflow}/lib/libtensorflow.so.2 node_modules/@tensorflow/tfjs-node/deps/lib/libtensorflow.so.2.9.1
+ '';
+ }));
+ };
+ } [
+ (pnpm2nix.mkPnpmPackage.x86_64-linux)
+ (drv: builtins.readFile "${drv}/nix-support/propagated-build-inputs")
+ (path: "${path}/node_modules")
+ ];
+
in
pkgs.stdenv.mkDerivation {
pname = "nucleus";
diff --git a/garnix.yaml b/garnix.yaml
new file mode 100644
index 0000000..c86698d
--- /dev/null
+++ b/garnix.yaml
@@ -0,0 +1,3 @@
+builds:
+ exclude:
+ - devShells.x86_64-linux.default