Merge pull request #329212 from philiptaron/pr-272380/fix-nix-2.3.18-eval

{gradle.fetchDeps,shattered-pixel-dungeon}: fix eval on Nix 2.3.18
This commit is contained in:
Robert Hensing 2024-07-24 16:11:12 +02:00 committed by GitHub
commit 0ad09cf8b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -123,10 +123,9 @@ let
fileList = builtins.filter (x: lib.hasPrefix xmlBase x && x != url) (builtins.attrNames finalData);
jarPomList = map parseArtifactUrl fileList;
sortedJarPomList =
lib.sort
(a: b: lib.splitVersion a.version < lib.splitVersion b.version)
jarPomList;
sortByVersion = a: b: (builtins.compareVersions a.version b.version) < 0;
sortedJarPomList = lib.sort sortByVersion jarPomList;
uniqueVersionFiles =
builtins.map ({ i, x }: x)

View File

@ -53,7 +53,7 @@ let
keywords = [ "roguelike" "dungeon" "crawler" ];
};
depsPath' = if depsPath != null then depsPath else ./${pname}/deps.json;
depsPath' = if depsPath != null then depsPath else ./. + "/${pname}/deps.json";
in stdenv.mkDerivation (cleanAttrs // {
inherit pname version src patches postPatch;