refactor: rename modules.drv-parts => modules.dream2nix

This commit is contained in:
DavHau 2023-08-31 15:03:07 +02:00
parent f4371d3e9b
commit c5f5b03944
105 changed files with 56 additions and 56 deletions

View File

@ -13,7 +13,7 @@
nixpkgs.lib.evalModules {
specialArgs.dream2nix = dream2nix;
specialArgs.packageSets.nixpkgs = nixpkgs;
modules = [module ./settings.nix dream2nix.modules.drv-parts.core];
modules = [module ./settings.nix dream2nix.modules.dream2nix.core];
};
# like callPackage for modules

View File

@ -5,7 +5,7 @@
...
}: {
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
name = "hello";

View File

@ -6,7 +6,7 @@
}: {
# select builtins.derivation as a backend for this package
imports = [
dream2nix.modules.drv-parts.builtins-derivation
dream2nix.modules.dream2nix.builtins-derivation
];
name = "test";

View File

@ -9,7 +9,7 @@
in {
# select mkDerivation as a backend for this package
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
config = {

View File

@ -6,7 +6,7 @@
}: {
# select mkDerivation as a backend for this package
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
deps = {nixpkgs, ...}: {

View File

@ -13,9 +13,9 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-package-lock
dream2nix.modules.drv-parts.nodejs-granular
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.nodejs-package-lock
dream2nix.modules.dream2nix.nodejs-granular
dream2nix.modules.dream2nix.pip
];
name = "isso";

View File

@ -8,8 +8,8 @@
system = config.deps.stdenv.system;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-package-json
dream2nix.modules.drv-parts.nodejs-granular
dream2nix.modules.dream2nix.nodejs-package-json
dream2nix.modules.dream2nix.nodejs-granular
];
mkDerivation = {

View File

@ -7,7 +7,7 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-devshell
dream2nix.modules.dream2nix.nodejs-devshell
];
mkDerivation = {

View File

@ -7,7 +7,7 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-node-modules
dream2nix.modules.dream2nix.nodejs-node-modules
];
mkDerivation = {

View File

@ -7,8 +7,8 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.nodejs-package-lock
dream2nix.modules.drv-parts.nodejs-granular
dream2nix.modules.dream2nix.nodejs-package-lock
dream2nix.modules.dream2nix.nodejs-granular
];
mkDerivation = {

View File

@ -5,8 +5,8 @@
...
}: {
imports = [
dream2nix.modules.drv-parts.php-composer-lock
dream2nix.modules.drv-parts.php-granular
dream2nix.modules.dream2nix.php-composer-lock
dream2nix.modules.dream2nix.php-granular
];
mkDerivation = {

View File

@ -7,7 +7,7 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.pip
];
deps = {nixpkgs, ...}: {

View File

@ -8,7 +8,7 @@
python = config.deps.python;
in {
imports = [
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.pip
];
deps = {

View File

@ -15,7 +15,7 @@
};
in {
imports = [
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.pip
];
deps = {nixpkgs, ...}: {

View File

@ -9,7 +9,7 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.pip
];
deps = {nixpkgs, ...}: {

View File

@ -12,7 +12,7 @@
];
in {
imports = [
dream2nix.modules.drv-parts.pip
dream2nix.modules.dream2nix.pip
];
name = "pyproject-dependencies";

View File

@ -7,8 +7,8 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.rust-cargo-lock
dream2nix.modules.drv-parts.rust-crane
dream2nix.modules.dream2nix.rust-cargo-lock
dream2nix.modules.dream2nix.rust-crane
];
deps = {nixpkgs, ...}: {

View File

@ -7,8 +7,8 @@
l = lib // builtins;
in {
imports = [
dream2nix.modules.drv-parts.rust-cargo-lock
dream2nix.modules.drv-parts.rust-crane
dream2nix.modules.dream2nix.rust-cargo-lock
dream2nix.modules.dream2nix.rust-crane
];
mkDerivation = {

View File

@ -7,7 +7,7 @@
nixpkgs.lib.evalModules {
specialArgs.dream2nix = dream2nix;
specialArgs.packageSets.nixpkgs = nixpkgs;
modules = [module dream2nix.modules.drv-parts.core];
modules = [module dream2nix.modules.dream2nix.core];
};
# like callPackage for modules
@ -39,7 +39,7 @@
num:
callModule {
imports = [
dream2nix.modules.drv-parts.builtins-derivation
dream2nix.modules.dream2nix.builtins-derivation
];
name = "hello-${num}";
version = "2.12.1";

View File

@ -7,7 +7,7 @@
nixpkgs.lib.evalModules {
specialArgs.dream2nix = dream2nix;
specialArgs.packageSets.nixpkgs = nixpkgs;
modules = [module dream2nix.modules.drv-parts.core];
modules = [module dream2nix.modules.dream2nix.core];
};
# like callPackage for modules
@ -40,7 +40,7 @@
modules = lib.genAttrs (map toString (lib.range 0 numPkgs)) (num:
callModule rec {
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
name = "hello-${num}";
version = "2.12.1";

View File

@ -159,7 +159,7 @@
dreamLockInterface.packages;
in {
imports = [
# dream2nix.modules.drv-parts.mkDerivation
# dream2nix.modules.dream2nix.mkDerivation
];
public = lib.mkForce {

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -16,7 +16,7 @@
# detected as modules by accident. (derivations are attrs as well as modules)
drvPart = let
type = t.submoduleWith {
modules = [dream2nix.modules.drv-parts.core];
modules = [dream2nix.modules.dream2nix.core];
inherit specialArgs;
};
in

View File

@ -12,8 +12,8 @@
in {
imports = [
./interface.nix
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.drv-parts.nodejs-package-lock
dream2nix.modules.dream2nix.mkDerivation
dream2nix.modules.dream2nix.nodejs-package-lock
];
nodejs-devshell.nodeModules = {

View File

@ -14,8 +14,8 @@ in {
type = t.submoduleWith {
specialArgs = {inherit packageSets dream2nix;};
modules = [
dream2nix.modules.drv-parts.core
dream2nix.modules.drv-parts.nodejs-node-modules
dream2nix.modules.dream2nix.core
dream2nix.modules.dream2nix.nodejs-node-modules
];
};
};

View File

@ -276,7 +276,7 @@
in {
imports = [
./interface.nix
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
(commonModule defaultPackageName defaultPackageVersion)
];
deps = {nixpkgs, ...}:

View File

@ -36,8 +36,8 @@ in {
deps = {
type = t.attrsOf (t.attrsOf (t.submodule {
imports = [
dream2nix.modules.drv-parts.core
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.core
dream2nix.modules.dream2nix.mkDerivation
./interface.nix
];
_module.args = {inherit dream2nix packageSets;};

View File

@ -9,9 +9,9 @@
cfg = config.nodejs-devshell;
in {
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.drv-parts.nodejs-package-lock
dream2nix.modules.drv-parts.nodejs-granular
dream2nix.modules.dream2nix.mkDerivation
dream2nix.modules.dream2nix.nodejs-package-lock
dream2nix.modules.dream2nix.nodejs-granular
];
mkDerivation = {

View File

@ -156,7 +156,7 @@
module = {config, ...}: {
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
deps = {nixpkgs, ...}:
l.mapAttrs (_: l.mkDefault) {

View File

@ -12,8 +12,8 @@ in {
deps = {
type = t.attrsOf (t.attrsOf (t.submodule {
imports = [
dream2nix.modules.drv-parts.core
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.core
dream2nix.modules.dream2nix.mkDerivation
./interface.nix
];
_module.args = {inherit dream2nix packageSets;};

View File

@ -53,7 +53,7 @@
commonModule = {config, ...}: {
imports = [
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
../buildPythonPackage
];
config = {

View File

@ -78,7 +78,7 @@ in {
drvs = l.mkOption {
type = t.lazyAttrsOf (t.submoduleWith {
modules = [dream2nix.modules.drv-parts.core];
modules = [dream2nix.modules.dream2nix.core];
specialArgs = {inherit packageSets dream2nix;};
});
description = "drv-parts modules that define python dependencies";

View File

@ -189,7 +189,7 @@
in {
imports = [
./interface.nix
dream2nix.modules.drv-parts.mkDerivation
dream2nix.modules.dream2nix.mkDerivation
];
rust-crane.depsDrv = {

View File

@ -56,7 +56,7 @@ in {
};
depsDrv = {
type = t.submoduleWith {
modules = [dream2nix.modules.drv-parts.mkDerivation];
modules = [dream2nix.modules.dream2nix.mkDerivation];
inherit specialArgs;
};
description = "A single derivation with all dependencies of the package";

Some files were not shown because too many files have changed in this diff Show More