powersort/shell.nix

19 lines
469 B
Nix
Raw Normal View History

2024-11-19 19:17:15 +01:00
{ pkgs ? import <nixpkgs> { } }:
let
unstable = import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz) { };
toolchains = [ unstable.jdk23 ];
in
pkgs.mkShell {
nativeBuildInputs = [
(unstable.gradle.overrideAttrs (curr: old: {
fixupPhase = ''
cat > $out/lib/gradle/gradle.properties <<EOF
org.gradle.java.installations.paths=${pkgs.lib.concatStringsSep "," toolchains}
EOF
'';
}))
];
}