at master 727 B view raw
1let 2 pkgs = import ../../../.. { 3 config = { }; 4 overlays = [ ]; 5 }; 6 7 inherit (pkgs) 8 lib 9 stdenvNoCC 10 gitMinimal 11 treefmt 12 nixfmt 13 ; 14in 15 16stdenvNoCC.mkDerivation { 17 name = "test"; 18 src = lib.fileset.toSource { 19 root = ./..; 20 fileset = lib.fileset.unions [ 21 ../run.sh 22 ./run.sh 23 ./first.diff 24 ./second.diff 25 ]; 26 }; 27 nativeBuildInputs = [ 28 gitMinimal 29 treefmt 30 nixfmt 31 ]; 32 patchPhase = '' 33 patchShebangs . 34 ''; 35 36 buildPhase = '' 37 export HOME=$(mktemp -d) 38 export PAGER=true 39 git config --global user.email "Your Name" 40 git config --global user.name "your.name@example.com" 41 ./test/run.sh 42 ''; 43 installPhase = '' 44 touch $out 45 ''; 46}