This repository has been archived on 2024-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
test2gis/flake.nix

31 lines
637 B
Nix
Raw Normal View History

{
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}";
};
};
};
}