mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
47 lines
747 B
Nix
47 lines
747 B
Nix
![]() |
let
|
||
|
pkgs = import ../../../.. {
|
||
|
config = { };
|
||
|
overlays = [ ];
|
||
|
};
|
||
|
|
||
|
inherit (pkgs)
|
||
|
lib
|
||
|
stdenvNoCC
|
||
|
gitMinimal
|
||
|
treefmt
|
||
|
nixfmt-rfc-style
|
||
|
;
|
||
|
in
|
||
|
|
||
|
stdenvNoCC.mkDerivation {
|
||
|
name = "test";
|
||
|
src = lib.fileset.toSource {
|
||
|
root = ./..;
|
||
|
fileset = lib.fileset.unions [
|
||
|
../run.sh
|
||
|
./run.sh
|
||
|
./first.diff
|
||
|
./second.diff
|
||
|
];
|
||
|
};
|
||
|
nativeBuildInputs = [
|
||
|
gitMinimal
|
||
|
treefmt
|
||
|
nixfmt-rfc-style
|
||
|
];
|
||
|
patchPhase = ''
|
||
|
patchShebangs .
|
||
|
'';
|
||
|
|
||
|
buildPhase = ''
|
||
|
export HOME=$(mktemp -d)
|
||
|
export PAGER=true
|
||
|
git config --global user.email "Your Name"
|
||
|
git config --global user.name "your.name@example.com"
|
||
|
./test/run.sh
|
||
|
'';
|
||
|
installPhase = ''
|
||
|
touch $out
|
||
|
'';
|
||
|
}
|