mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-19 02:17:14 +03:00
make builders not depend on dlib
and utils
This commit is contained in:
parent
31cee1a17a
commit
ed8a64c463
@ -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;
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user