diff --git a/pkgs/development/tools/build-managers/gradle/fetch-deps.nix b/pkgs/development/tools/build-managers/gradle/fetch-deps.nix index f4485609f65fb..304898c0131c6 100644 --- a/pkgs/development/tools/build-managers/gradle/fetch-deps.nix +++ b/pkgs/development/tools/build-managers/gradle/fetch-deps.nix @@ -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) diff --git a/pkgs/games/shattered-pixel-dungeon/generic.nix b/pkgs/games/shattered-pixel-dungeon/generic.nix index 7f2f3a14a4d28..3e81c54bba911 100644 --- a/pkgs/games/shattered-pixel-dungeon/generic.nix +++ b/pkgs/games/shattered-pixel-dungeon/generic.nix @@ -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;