dream2nix/examples/_d2n-extended-new-subsystem/translators.nix
2022-10-06 22:24:07 +03:00

29 lines
710 B
Nix

{config, ...}: let
inherit (config.pkgs) hello;
in {
translators.dummy = {...}: {
type = "pure";
name = "dummy";
subsystem = "hello";
translate = {...}: {
result = {
_generic = {
subsystem = "hello";
defaultPackage = "hello";
location = "";
sourcesAggregatedHash = null;
packages = {${hello.pname} = hello.version;};
};
_subsystem = {};
cyclicDependencies = {};
dependencies.${hello.pname}.${hello.version} = [];
sources.${hello.pname}.${hello.version} = {
type = "http";
url = hello.src.url;
hash = hello.src.outputHash;
};
};
};
};
}