mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 20:11:33 +03:00
fix: php: package names ensure lowercase
This commit is contained in:
parent
f1888d4763
commit
2f499eb8eb
@ -98,7 +98,7 @@
|
||||
url = "${root}/vendor/${name}";
|
||||
options = {
|
||||
versions = {
|
||||
"${name}" = "${version}";
|
||||
"${l.strings.toLower name}" = "${version}";
|
||||
};
|
||||
symlink = false;
|
||||
};
|
||||
@ -125,7 +125,7 @@
|
||||
(repositories ++ [{packagist = false;}]);
|
||||
dependenciesString = l.toJSON (l.listToAttrs (
|
||||
map (dep: {
|
||||
inherit (dep) name;
|
||||
name = l.strings.toLower dep.name;
|
||||
value = dep.version;
|
||||
})
|
||||
(dependencies
|
||||
|
@ -111,7 +111,7 @@
|
||||
url = "${cleanDependency dep.name dep.version}";
|
||||
options = {
|
||||
versions = {
|
||||
"${dep.name}" = "${dep.version}";
|
||||
"${l.strings.toLower dep.name}" = "${dep.version}";
|
||||
};
|
||||
symlink = false;
|
||||
};
|
||||
@ -123,7 +123,7 @@
|
||||
|
||||
dependenciesString = l.toJSON (l.listToAttrs (
|
||||
map (dep: {
|
||||
inherit (dep) name;
|
||||
name = l.strings.toLower dep.name;
|
||||
value = dep.version;
|
||||
})
|
||||
dependencies
|
||||
|
@ -60,7 +60,9 @@
|
||||
|
||||
jq \
|
||||
"(.config.lock = true) | \
|
||||
(.config.\"platform-check\" = false)" \
|
||||
(.config.\"platform-check\" = false) | \
|
||||
(.require = ((.require // {}) | with_entries(.key |= ascii_downcase))) | \
|
||||
(.\"require-dev\" = ((.\"require-dev\" // {}) | with_entries(.key |= ascii_downcase)))" \
|
||||
composer.json.orig > composer.json
|
||||
|
||||
if [ "$(jq '.project.subsystemInfo.noDev' -c -r $jsonInput)" == "true" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user