Skip to content

ingun37/answers-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Answers Script

Generate default.nix

nix-shell -p cabal2nix
cabal2nix --no-check ./. > default.nix

Generate shell.nix

nix-shell -p cabal2nix
cabal2nix --shell --no-check ./. > shell.nix

Build

Don't just build using Cabal!! it will take forever because of Pandoc.

Build in Nix environment

# Enter Nix environment defined in shell.nix
nix-shell
# Use executable
answers-script ...

Test

nix-shell
cabal --enable-nix test

Install from other machines

TAR="https://github.com/ingun37/answers-script/archive/refs/tags/1.0.1.tar.gz"
# sandboxing
nix-shell -p "with import <nixpkgs> {}; let f = import (fetchTarball $TAR); in haskellPackages.callPackage f {}"
# no sandboxing
nix-env --install -E "with import <nixpkgs> {}; let f = import (fetchTarball $TAR); in _: (haskellPackages.callPackage f {})"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published