Skip to content
Snippets Groups Projects
Commit 11ef7426 authored by Seseke, David's avatar Seseke, David :floppy_disk:
Browse files

Add simple way of running without entering shell

parent 5820e9d9
No related branches found
No related tags found
No related merge requests found
...@@ -10,19 +10,22 @@ ...@@ -10,19 +10,22 @@
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
overlays = [ ]; overlays = [ ];
# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in buildInputs = with pkgs; [
{
packages = {
default = self.packages.${system}.myapp;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
R R
rPackages.RSiena rPackages.RSiena
]; ];
name = "run-calc";
runCalc = (pkgs.writeScriptBin name (builtins.readFile ./test_rsiena_installation.R));
in rec {
defaultPackage = packages.runCalc;
packages.runCalc = pkgs.symlinkJoin {
name = name;
paths = [ runCalc ] ++ buildInputs;
};
devShells.default = pkgs.mkShell {
packages = buildInputs ++ [runCalc];
}; };
}); });
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment