make builders not depend on dlib and utils

This commit is contained in:
DavHau 2022-06-07 16:04:20 +02:00
parent 31cee1a17a
commit ed8a64c463
3 changed files with 4 additions and 8 deletions

View File

@ -10,9 +10,6 @@
runCommand,
stdenv,
writeText,
# dream2nix inputs
externals,
utils,
...
}: {
# Funcs
@ -201,7 +198,7 @@
packageName = name;
pname = utils.sanitizeDerivationName name;
pname = lib.replaceStrings ["@" "/"] ["__at__" "__slash__"] name;
passthru.dependencies = passthruDeps;

View File

@ -29,7 +29,7 @@ if 'os' in package_json:
# If it is a github dependency referred by revision,
# we can not rely on the version inside the package.json.
# In case of an 'unknown' version coming from the dream lock,
# do not override the version from package.json
# do not override the version from package.json
version = os.environ.get("version")
if version not in ["unknown", package_json.get('version')]:
print(

View File

@ -7,7 +7,6 @@
stdenv,
# dream2nix inputs
externals,
utils,
...
}: {
### FUNCTIONS
@ -35,7 +34,7 @@
produceDerivation,
...
} @ args: let
b = builtins;
l = lib // builtins;
# the main package
defaultPackage = allPackages."${defaultPackageName}"."${defaultPackageVersion}";
@ -60,7 +59,7 @@
# Generates a derivation for a specific package name + version
makeOnePackage = name: version: let
pkg = stdenv.mkDerivation rec {
pname = utils.sanitizeDerivationName name;
pname = l.strings.sanitizeDerivationName name;
inherit version;
src = getSource name version;