File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -180,14 +180,14 @@ genNixActions (){
180180addNixCommand genNixActions
181181
182182initNixConfig (){
183- Orig=$toolboxDir /template- config.nix
183+ Orig=$toolboxDir /template/.nix/ config.nix
184184 F=$configDir /config.nix;
185185 if [[ -f $F ]]; then
186186 echo " $F already exists"
187187 else if [[ -n " $1 " ]]; then
188188 mkdir -p $configDir
189189 cat $Orig > $F
190- sed -i " s/template /$1 /" $F
190+ sed -i " s/YOUR_PACKAGE_NAME /$1 /" $F
191191 else echo " usage: initNixConfig pname"
192192 fi
193193 fi
Original file line number Diff line number Diff line change 4343 }
4444 ) ;
4545 } ;
46+ templates . default = {
47+ path = ./template ;
48+ description = "Initialize the Rocq Nix Toolbox in a new project" ;
49+ } ;
4650 packages = lib . allPackages ./. ;
4751 } ;
4852}
Original file line number Diff line number Diff line change 88 ## either using nixpkgs data or the overlays located in `.nix/rocq-overlays`
99 ## and `.nix/coq-overlays`
1010 ## Will determine the default main-job of the bundles defined below
11- attribute = "template " ;
11+ attribute = "YOUR_PACKAGE_NAME " ;
1212
1313 ## The attribute for coq compat shim, default to attribute
1414 ## set this when you need both to differ
1515 ## (for instance "rocq-elpi" and "coq-elpi")
16- # coq-attribute = "template ";
16+ # coq-attribute = "YOUR_PACKAGE_NAME ";
1717
1818 ## Set this when the package has no rocqPackages version yet
1919 ## (either in nixpkgs or in .nix/rocq-overlays)
Original file line number Diff line number Diff line change 1+ {
2+ description = "A Nix flake for my Rocq project using the Rocq Nix Toolbox" ;
3+ inputs = {
4+ rocq-nix-toolbox . url = "github:rocq-community/coq-nix-toolbox" ;
5+ } ;
6+ outputs =
7+ { rocq-nix-toolbox , ... } :
8+ {
9+ packages = rocq-nix-toolbox . lib . allPackages ./. ;
10+ } ;
11+ }
You can’t perform that action at this time.
0 commit comments