blob: 41673a64b648a1afebc9350326b3ea8e04113e6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
let
niv-sources = import ./nix/sources.nix;
pkgs = import niv-sources.nixpkgs { };
src = pkgs.nix-gitignore.gitignoreSource [ "!.git" ] ./.;
projectBuildInputs = with pkgs; [ gitMinimal shellcheck nixfmt terraform ];
in {
test = pkgs.stdenv.mkDerivation {
inherit src;
name = "vps-test";
phases = [ "unpackPhase" "buildPhase" ];
buildInputs = projectBuildInputs;
buildPhase = ''
patchShebangs .
./tests.sh
touch $out
'';
};
shell = pkgs.mkShell {
name = "vps-shell";
buildInputs = projectBuildInputs;
};
}
|