2024-08-13 23:15:56 +03:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
src,
|
|
|
|
officialRelease,
|
|
|
|
}:
|
|
|
|
|
2024-06-26 05:17:30 +03:00
|
|
|
scope:
|
2024-08-13 23:15:56 +03:00
|
|
|
|
2024-06-26 03:38:07 +03:00
|
|
|
let
|
|
|
|
inherit (scope) callPackage;
|
2024-08-13 23:15:56 +03:00
|
|
|
|
|
|
|
baseVersion = lib.fileContents ../.version;
|
|
|
|
|
|
|
|
versionSuffix = lib.optionalString (!officialRelease) "pre";
|
|
|
|
|
|
|
|
fineVersionSuffix = lib.optionalString
|
|
|
|
(!officialRelease)
|
|
|
|
"pre${builtins.substring 0 8 (src.lastModifiedDate or src.lastModified or "19700101")}_${src.shortRev or "dirty"}";
|
|
|
|
|
|
|
|
fineVersion = baseVersion + fineVersionSuffix;
|
2024-06-26 03:38:07 +03:00
|
|
|
in
|
|
|
|
|
|
|
|
# This becomes the pkgs.nixComponents attribute set
|
|
|
|
{
|
2024-08-13 23:15:56 +03:00
|
|
|
version = baseVersion + versionSuffix;
|
|
|
|
inherit versionSuffix;
|
|
|
|
|
|
|
|
nix = callPackage ../package.nix {
|
|
|
|
version = fineVersion;
|
|
|
|
versionSuffix = fineVersionSuffix;
|
|
|
|
};
|
2024-06-26 03:38:07 +03:00
|
|
|
|
2024-06-26 04:33:30 +03:00
|
|
|
nix-util = callPackage ../src/libutil/package.nix { };
|
2024-06-28 01:09:32 +03:00
|
|
|
nix-util-c = callPackage ../src/libutil-c/package.nix { };
|
2024-10-10 21:56:26 +03:00
|
|
|
nix-util-test-support = callPackage ../src/libutil-test-support/package.nix { };
|
|
|
|
nix-util-tests = callPackage ../src/libutil-tests/package.nix { };
|
2024-06-26 03:38:07 +03:00
|
|
|
|
2024-06-27 18:28:08 +03:00
|
|
|
nix-store = callPackage ../src/libstore/package.nix { };
|
2024-06-28 01:09:32 +03:00
|
|
|
nix-store-c = callPackage ../src/libstore-c/package.nix { };
|
2024-10-10 21:56:26 +03:00
|
|
|
nix-store-test-support = callPackage ../src/libstore-test-support/package.nix { };
|
|
|
|
nix-store-tests = callPackage ../src/libstore-tests/package.nix { };
|
2024-06-26 03:38:07 +03:00
|
|
|
|
2024-06-26 04:33:30 +03:00
|
|
|
nix-fetchers = callPackage ../src/libfetchers/package.nix { };
|
2024-10-10 21:56:26 +03:00
|
|
|
nix-fetchers-tests = callPackage ../src/libfetchers-tests/package.nix { };
|
2024-06-26 04:33:30 +03:00
|
|
|
|
2024-06-27 05:15:33 +03:00
|
|
|
nix-expr = callPackage ../src/libexpr/package.nix { };
|
2024-06-28 01:09:32 +03:00
|
|
|
nix-expr-c = callPackage ../src/libexpr-c/package.nix { };
|
2024-10-10 21:56:26 +03:00
|
|
|
nix-expr-test-support = callPackage ../src/libexpr-test-support/package.nix { };
|
|
|
|
nix-expr-tests = callPackage ../src/libexpr-tests/package.nix { };
|
2024-06-27 05:15:33 +03:00
|
|
|
|
|
|
|
nix-flake = callPackage ../src/libflake/package.nix { };
|
2024-10-10 21:56:26 +03:00
|
|
|
nix-flake-tests = callPackage ../src/libflake-tests/package.nix { };
|
2024-06-26 11:47:13 +03:00
|
|
|
|
2024-07-03 21:47:23 +03:00
|
|
|
nix-main = callPackage ../src/libmain/package.nix { };
|
2024-07-02 22:15:17 +03:00
|
|
|
nix-main-c = callPackage ../src/libmain-c/package.nix { };
|
2024-07-03 21:47:23 +03:00
|
|
|
|
|
|
|
nix-cmd = callPackage ../src/libcmd/package.nix { };
|
|
|
|
|
2024-08-14 23:04:35 +03:00
|
|
|
nix-cli = callPackage ../src/nix/package.nix { version = fineVersion; };
|
2024-07-05 23:21:20 +03:00
|
|
|
|
2024-07-08 23:07:06 +03:00
|
|
|
nix-functional-tests = callPackage ../src/nix-functional-tests/package.nix { version = fineVersion; };
|
|
|
|
|
2024-07-30 22:05:22 +03:00
|
|
|
nix-manual = callPackage ../doc/manual/package.nix { version = fineVersion; };
|
2024-08-13 23:15:56 +03:00
|
|
|
nix-internal-api-docs = callPackage ../src/internal-api-docs/package.nix { version = fineVersion; };
|
|
|
|
nix-external-api-docs = callPackage ../src/external-api-docs/package.nix { version = fineVersion; };
|
2024-06-26 11:47:13 +03:00
|
|
|
|
2024-06-27 05:15:33 +03:00
|
|
|
nix-perl-bindings = callPackage ../src/perl/package.nix { };
|
2024-08-14 23:04:35 +03:00
|
|
|
|
|
|
|
# Will replace `nix` once the old build system is gone.
|
|
|
|
nix-ng = callPackage ../packaging/everything.nix { };
|
2024-06-26 03:38:07 +03:00
|
|
|
}
|