blob: ae37a1f9f83a1367f9b28193e8382df38fd07f99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
let
niv-sources = import ./nix/sources.nix;
pkgs = import niv-sources.nixpkgs { };
src = pkgs.nix-gitignore.gitignoreSource [ "!.git" ] ./.;
projectBuildInputs = with pkgs; [
];
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;
};
}
|