mirror of
https://github.com/dwinkler1/fran.git
synced 2026-02-19 14:40:58 -05:00
added jgd
This commit is contained in:
parent
fe5868d574
commit
c46bc7dea5
6 changed files with 79 additions and 14 deletions
25
flake.nix
25
flake.nix
|
|
@ -78,9 +78,34 @@
|
|||
franUpdate
|
||||
];
|
||||
};
|
||||
newpkg = pkgs.mkShell {
|
||||
nativeBuildInputs = [
|
||||
pkgs.nix-prefetch-github
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
checks = forAllSystems (
|
||||
system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [self.overlays.default];
|
||||
};
|
||||
rEnv = mkR {
|
||||
inherit pkgs;
|
||||
packages = builtins.attrValues pkgs.extraRPackages;
|
||||
};
|
||||
in {
|
||||
test-script = pkgs.runCommand "test-script" {} ''
|
||||
mkdir -p $out
|
||||
cp ${./test/test.R} test.R
|
||||
${rEnv}/bin/Rscript test.R > $out/result.log
|
||||
'';
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [
|
||||
"https://rstats-on-nix.cachix.org"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue