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