mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-16 18:00:30 +03:00
fix: meta.licenses -> meta.license
This commit is contained in:
parent
c621ddff9e
commit
499c9a7ff1
@ -221,7 +221,7 @@
|
||||
in
|
||||
meta
|
||||
// {
|
||||
licenses = l.map (name: l.licenses.${name}) meta.licenses;
|
||||
license = l.map (name: l.licenses.${name}) meta.license;
|
||||
};
|
||||
|
||||
passthru.dependencies = passthruDeps;
|
||||
|
@ -5,7 +5,7 @@
|
||||
l = lib // builtins;
|
||||
in rec {
|
||||
getMetaFromPackageJson = packageJson:
|
||||
{licenses = dlib.parseSpdxId (packageJson.license or "");}
|
||||
{license = dlib.parseSpdxId (packageJson.license or "");}
|
||||
// (
|
||||
l.filterAttrs
|
||||
(n: v: l.any (on: n == on) ["description" "homepage"])
|
||||
|
@ -18,7 +18,7 @@ in rec {
|
||||
in
|
||||
meta
|
||||
// {
|
||||
licenses = l.map (name: l.licenses.${name}) meta.licenses;
|
||||
license = l.map (name: l.licenses.${name}) meta.license;
|
||||
};
|
||||
|
||||
# Gets the root source for a package
|
||||
|
@ -258,7 +258,7 @@ in {
|
||||
pkg = package.value.package;
|
||||
in {
|
||||
${pkg.name}.${pkg.version} =
|
||||
{licenses = dlib.parseSpdxId (pkg.license or "");}
|
||||
{license = dlib.parseSpdxId (pkg.license or "");}
|
||||
// (
|
||||
l.filterAttrs
|
||||
(n: v: l.any (on: n == on) ["description" "homepage"])
|
||||
|
Loading…
Reference in New Issue
Block a user