mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 22:37:18 +03:00
38 lines
591 B
Nix
38 lines
591 B
Nix
# This is currently only used for legacy modules ported to v1.
|
|
# The dream-lock concept might be deprecated together with this module at some
|
|
# point.
|
|
{lib, ...}: let
|
|
l = builtins // lib;
|
|
|
|
mkDiscovereredProject = {
|
|
name,
|
|
relPath,
|
|
subsystem,
|
|
subsystemInfo,
|
|
translators,
|
|
}: {
|
|
inherit
|
|
name
|
|
relPath
|
|
subsystem
|
|
subsystemInfo
|
|
translators
|
|
;
|
|
};
|
|
|
|
mkPathSource = {
|
|
path,
|
|
rootName,
|
|
rootVersion,
|
|
} @ args:
|
|
args
|
|
// {
|
|
type = "path";
|
|
};
|
|
in {
|
|
inherit
|
|
mkDiscovereredProject
|
|
mkPathSource
|
|
;
|
|
}
|