Simplify module args - use relative path for usda-vision
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }@moduleArgs:
|
||||
{ inputs, ... }:
|
||||
|
||||
# ============================================================================
|
||||
# USDA Dashboard External System Module
|
||||
@@ -11,6 +11,7 @@
|
||||
# "usda-dash" = builtins.fetchGit {
|
||||
# url = "https://git.factory.uga.edu/MODEL/usda-dash-config.git";
|
||||
# rev = "commit-hash";
|
||||
# submodules = true; # REQUIRED for usda-vision submodule
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
@@ -23,17 +24,15 @@
|
||||
}:
|
||||
|
||||
let
|
||||
# Get the directory where this module is located
|
||||
moduleDir = builtins.toString (builtins.dirOf moduleArgs);
|
||||
|
||||
# Create a derivation that packages the usda-vision directory
|
||||
usda-vision-app = pkgs.stdenv.mkDerivation {
|
||||
pname = "usda-vision";
|
||||
version = "1.0.0";
|
||||
|
||||
# Use the directory from this repository with explicit source filtering
|
||||
# The ./usda-vision path is relative to this module file
|
||||
src = lib.cleanSourceWith {
|
||||
src = "${moduleDir}/usda-vision";
|
||||
src = ./usda-vision;
|
||||
filter = path: type:
|
||||
let
|
||||
baseName = baseNameOf path;
|
||||
|
||||
Reference in New Issue
Block a user