31 lines
637 B
Nix
31 lines
637 B
Nix
|
{
|
||
|
description = "test2gis dev shell";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs } @inputs: let
|
||
|
system = "x86_64-linux";
|
||
|
lib = nixpkgs.lib;
|
||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||
|
|
||
|
jdk = pkgs.corretto11;
|
||
|
in {
|
||
|
devShells.${system} = {
|
||
|
default = pkgs.mkShell rec {
|
||
|
nativeBuildInputs = with pkgs; [
|
||
|
gnumake
|
||
|
sbt
|
||
|
];
|
||
|
buildInputs = with pkgs; [ ];
|
||
|
|
||
|
PATH = [ "${jdk}/bin" ];
|
||
|
JAVA_HOME = "${jdk}";
|
||
|
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
|
||
|
SOURCE_DATE_EPOCH = "${toString self.lastModified}";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|