-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
30 lines (26 loc) · 899 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
description = "Gasoline";
inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };
inputs.systems.url = "github:nix-systems/default";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-utils.inputs.systems.follows = "systems";
outputs = { self, systems, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
updateLocks = pkgs.callPackage ./update-locks.nix { };
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.gradle_8
pkgs.temurin-bin-21
updateLocks
pkgs.ktlint
pkgs.kotlin
pkgs.jdk
];
};
formatter = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
packages.default = pkgs.callPackage ./build.nix {};
});
}