-
-
Save qrilka/2b21576e541412656bde0c4ca6c2064e to your computer and use it in GitHub Desktop.
Stack on NixOS without nix mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[kirill@qnixos:~/ws/h/tmp]$ stack-1.9.3 --no-nix --resolver lts-12.26 new simple | |
Downloading template "new-template" to create project "simple" in simple/ ... | |
The following parameters were needed by the template but not provided: author-name | |
You can provide them in /home/kirill/.stack/config.yaml, like this: | |
templates: | |
params: | |
author-name: value | |
Or you can pass each one as parameters like this: | |
stack new simple new-template -p "author-name:value" | |
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username | |
You can provide them in /home/kirill/.stack/config.yaml, like this: | |
templates: | |
params: | |
author-email: value | |
author-name: value | |
category: value | |
copyright: value | |
github-username: value | |
Or you can pass each one as parameters like this: | |
stack new simple new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value" | |
Looking for .cabal or package.yaml files to use to init the project. | |
Using cabal packages: | |
- simple/ | |
Downloaded lts-12.26 build plan. | |
Selected resolver: lts-12.26 | |
Initialising configuration using resolver: lts-12.26 | |
Total number of user packages considered: 1 | |
Writing configuration to file: simple/stack.yaml | |
All done. | |
[kirill@qnixos:~/ws/h/tmp]$ cd simple/ | |
[kirill@qnixos:~/ws/h/tmp/simple]$ stack-1.9.3 --no-nix --system-ghc build | |
[1 of 2] Compiling Main ( /home/kirill/.stack/setup-exe-src/setup-mPHDZzAJ.hs, /home/kirill/.stack/setup-exe-src/setup-mPHDZzAJ.o ) | |
[2 of 2] Compiling StackSetupShim ( /home/kirill/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /home/kirill/.stack/setup-exe-src/setup-shim-mPHDZzAJ.o ) | |
Linking /home/kirill/.stack/setup-exe-cache/x86_64-linux/tmp-Cabal-simple_mPHDZzAJ_2.2.0.1_ghc-8.4.4 ... | |
Building all executables for `simple' once. After a successful build of all of them, only specified executables will be rebuilt. | |
simple-0.1.0.0: configure (lib + exe) | |
Configuring simple-0.1.0.0... | |
simple-0.1.0.0: build (lib + exe) | |
Preprocessing library for simple-0.1.0.0.. | |
Building library for simple-0.1.0.0.. | |
[1 of 2] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Lib.o ) | |
[2 of 2] Compiling Paths_simple ( .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/autogen/Paths_simple.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Paths_simple.o ) | |
Preprocessing executable 'simple-exe' for simple-0.1.0.0.. | |
Building executable 'simple-exe' for simple-0.1.0.0.. | |
[1 of 2] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/simple-exe/simple-exe-tmp/Main.o ) | |
[2 of 2] Compiling Paths_simple ( .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/simple-exe/autogen/Paths_simple.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/simple-exe/simple-exe-tmp/Paths_simple.o ) | |
Linking .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/simple-exe/simple-exe ... | |
simple-0.1.0.0: copy/register | |
Installing library in /home/kirill/ws/h/tmp/simple/.stack-work/install/x86_64-linux/lts-12.26/8.4.4/lib/x86_64-linux-ghc-8.4.4/simple-0.1.0.0-DUuaD9ZyyfV6rZHxfuNNvZ | |
Installing executable simple-exe in /home/kirill/ws/h/tmp/simple/.stack-work/install/x86_64-linux/lts-12.26/8.4.4/bin | |
Registering library for simple-0.1.0.0.. | |
[kirill@qnixos:~/ws/h/tmp/simple]$ stack-1.9.3 --no-nix --system-ghc exec simple-exe | |
someFunc | |
[kirill@qnixos:~/ws/h/tmp/simple]$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[kirill@qnixos:~/ws/h/tmp]$ stack-2.1.1 --no-nix --resolver lts-12.26 new simple2 | |
Downloading template "new-template" to create project "simple2" in simple2/ ... | |
The following parameters were needed by the template but not provided: author-name | |
You can provide them in /home/kirill/.stack/config.yaml, like this: | |
templates: | |
params: | |
author-name: value | |
Or you can pass each one as parameters like this: | |
stack new simple2 new-template -p "author-name:value" | |
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username | |
You can provide them in /home/kirill/.stack/config.yaml, like this: | |
templates: | |
params: | |
author-email: value | |
author-name: value | |
category: value | |
copyright: value | |
github-username: value | |
Or you can pass each one as parameters like this: | |
stack new simple2 new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value" | |
Looking for .cabal or package.yaml files to use to init the project. | |
Using cabal packages: | |
- simple2/ | |
Selected resolver: lts-12.26 | |
Initialising configuration using resolver: lts-12.26 | |
Total number of user packages considered: 1 | |
Writing configuration to file: simple2/stack.yaml | |
All done. | |
[kirill@qnixos:~/ws/h/tmp]$ cd simple2 | |
[kirill@qnixos:~/ws/h/tmp/simple2]$ stack-2.1.1 --no-nix --system-ghc build | |
Building all executables for `simple2' once. After a successful build of all of them, only specified executables will be rebuilt. | |
simple2> configure (lib + exe) | |
Configuring simple2-0.1.0.0... | |
simple2> build (lib + exe) | |
Preprocessing library for simple2-0.1.0.0.. | |
Building library for simple2-0.1.0.0.. | |
[1 of 2] Compiling Lib | |
[2 of 2] Compiling Paths_simple2 | |
Preprocessing executable 'simple2-exe' for simple2-0.1.0.0.. | |
Building executable 'simple2-exe' for simple2-0.1.0.0.. | |
[1 of 2] Compiling Main | |
[2 of 2] Compiling Paths_simple2 | |
Linking .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/simple2-exe/simple2-exe ... | |
simple2> copy/register | |
Installing library in /home/kirill/ws/h/tmp/simple2/.stack-work/install/x86_64-linux/6844eee2e3a17c6892800dba077cd16d7adbab3e004ffe9fde8ac7b0f0bea427/8.4.4/lib/x86_64-linux-ghc-8.4.4/simple2-0.1.0.0-HIwCvnqgj8p5Sj6Z3SnUU0 | |
Installing executable simple2-exe in /home/kirill/ws/h/tmp/simple2/.stack-work/install/x86_64-linux/6844eee2e3a17c6892800dba077cd16d7adbab3e004ffe9fde8ac7b0f0bea427/8.4.4/bin | |
Registering library for simple2-0.1.0.0.. | |
[kirill@qnixos:~/ws/h/tmp/simple2]$ stack-2.1.1 --no-nix --system-ghc exec simple2-exe | |
someFunc | |
[kirill@qnixos:~/ws/h/tmp/simple2]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment