mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-22 06:32:21 +03:00
refactor: rename modules.drv-parts => modules.dream2nix
This commit is contained in:
parent
f4371d3e9b
commit
c5f5b03944
@ -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
|
||||
|
@ -5,7 +5,7 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
|
||||
name = "hello";
|
||||
|
@ -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";
|
||||
|
@ -9,7 +9,7 @@
|
||||
in {
|
||||
# select mkDerivation as a backend for this package
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
|
||||
config = {
|
||||
|
@ -6,7 +6,7 @@
|
||||
}: {
|
||||
# select mkDerivation as a backend for this package
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
|
||||
deps = {nixpkgs, ...}: {
|
||||
|
@ -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";
|
||||
|
@ -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 = {
|
||||
|
@ -7,7 +7,7 @@
|
||||
l = lib // builtins;
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.nodejs-devshell
|
||||
dream2nix.modules.dream2nix.nodejs-devshell
|
||||
];
|
||||
|
||||
mkDerivation = {
|
||||
|
@ -7,7 +7,7 @@
|
||||
l = lib // builtins;
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.nodejs-node-modules
|
||||
dream2nix.modules.dream2nix.nodejs-node-modules
|
||||
];
|
||||
|
||||
mkDerivation = {
|
||||
|
@ -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 = {
|
||||
|
@ -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 = {
|
||||
|
@ -7,7 +7,7 @@
|
||||
l = lib // builtins;
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.pip
|
||||
dream2nix.modules.dream2nix.pip
|
||||
];
|
||||
|
||||
deps = {nixpkgs, ...}: {
|
||||
|
@ -8,7 +8,7 @@
|
||||
python = config.deps.python;
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.pip
|
||||
dream2nix.modules.dream2nix.pip
|
||||
];
|
||||
|
||||
deps = {
|
||||
|
@ -15,7 +15,7 @@
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.pip
|
||||
dream2nix.modules.dream2nix.pip
|
||||
];
|
||||
|
||||
deps = {nixpkgs, ...}: {
|
||||
|
@ -9,7 +9,7 @@
|
||||
l = lib // builtins;
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.pip
|
||||
dream2nix.modules.dream2nix.pip
|
||||
];
|
||||
|
||||
deps = {nixpkgs, ...}: {
|
||||
|
@ -12,7 +12,7 @@
|
||||
];
|
||||
in {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.pip
|
||||
dream2nix.modules.dream2nix.pip
|
||||
];
|
||||
|
||||
name = "pyproject-dependencies";
|
||||
|
@ -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, ...}: {
|
||||
|
@ -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 = {
|
||||
|
@ -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";
|
||||
|
@ -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";
|
||||
|
@ -159,7 +159,7 @@
|
||||
dreamLockInterface.packages;
|
||||
in {
|
||||
imports = [
|
||||
# dream2nix.modules.drv-parts.mkDerivation
|
||||
# dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
|
||||
public = lib.mkForce {
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
@ -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
|
@ -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 = {
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
@ -276,7 +276,7 @@
|
||||
in {
|
||||
imports = [
|
||||
./interface.nix
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
(commonModule defaultPackageName defaultPackageVersion)
|
||||
];
|
||||
deps = {nixpkgs, ...}:
|
@ -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;};
|
@ -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 = {
|
@ -156,7 +156,7 @@
|
||||
|
||||
module = {config, ...}: {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
deps = {nixpkgs, ...}:
|
||||
l.mapAttrs (_: l.mkDefault) {
|
@ -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;};
|
@ -53,7 +53,7 @@
|
||||
|
||||
commonModule = {config, ...}: {
|
||||
imports = [
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
../buildPythonPackage
|
||||
];
|
||||
config = {
|
@ -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";
|
@ -189,7 +189,7 @@
|
||||
in {
|
||||
imports = [
|
||||
./interface.nix
|
||||
dream2nix.modules.drv-parts.mkDerivation
|
||||
dream2nix.modules.dream2nix.mkDerivation
|
||||
];
|
||||
|
||||
rust-crane.depsDrv = {
|
@ -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
Loading…
Reference in New Issue
Block a user