File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ { nixpkgs ? import ./nixpkgs-01-10.nix } :
2+ let
3+ pkgs = import nixpkgs { } ;
4+ stdenv = pkgs . stdenv ;
5+ in with pkgs ; {
6+ myProject = stdenv . mkDerivation {
7+ name = "Vsat_Data_Analysis" ;
8+ version = "2" ;
9+ src = if pkgs . lib . inNixShell then null else nix ;
10+
11+ buildInputs = with rPackages ; [
12+ pandoc
13+ R
14+ ggplot2
15+ knitr
16+ rmarkdown
17+ devtools
18+ reshape2
19+ yaml
20+ optparse
21+ tidyr
22+ dplyr
23+ svglite
24+ cowplot
25+ latex2exp
26+ gridExtra
27+ tidyverse
28+ forcats
29+ Hmisc
30+ ggpubr
31+ rstatix
32+ ] ;
33+ } ;
34+ }
Original file line number Diff line number Diff line change 1+ {
2+ "url" : " https://github.com/nixos/nixpkgs.git" ,
3+ "rev" : " b006e46b6bd3b177d178d487add9a7c337769dff" ,
4+ "date" : " 2021-10-01T08:38:39-04:00" ,
5+ "path" : " /nix/store/nsn9dgznb6fxmwiz1gadbvs2267jg3d7-nixpkgs" ,
6+ "sha256" : " 0xnqljjrjjvr1yazy620a7d4sgz576kkwkzfgqz3pl9lydy9l7gg" ,
7+ "fetchSubmodules" : false ,
8+ "deepClone" : false ,
9+ "leaveDotGit" : false
10+ }
Original file line number Diff line number Diff line change 1+ let
2+ hostNix = import <nixpkgs> { } ;
3+ nixpkgsPin = hostNix . pkgs . lib . importJSON ./nixpkgs-01-10.json ;
4+
5+ pinnedPkgs = hostNix . pkgs . fetchFromGitHub {
6+ owner = "NixOS" ;
7+ repo = "nixpkgs-channels" ;
8+ inherit ( nixpkgsPin ) rev sha256 ;
9+ } ;
10+ in
11+ pinnedPkgs
You can’t perform that action at this time.
0 commit comments