nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 20.09 53 lines 1.2 kB view raw
1{ haskell 2, haskellPackages 3, lib 4, nodejs 5, purescript 6, runCommand 7}: 8 9let 10 spago = 11 haskell.lib.justStaticExecutables 12 (haskell.lib.overrideCabal haskellPackages.spago (oldAttrs: { 13 maintainers = (oldAttrs.maintainers or []) ++ [ 14 lib.maintainers.cdepillabout 15 ]; 16 })); 17in 18 19spago.overrideAttrs (oldAttrs: { 20 passthru = (oldAttrs.passthru or {}) // { 21 updateScript = ./update.sh; 22 23 # These tests can be run with the following command. The tests access the 24 # network, so they cannot be run in the nix sandbox. sudo is needed in 25 # order to change the sandbox option. 26 # 27 # $ sudo nix-build -A spago.passthru.tests --option sandbox relaxed 28 # 29 tests = 30 runCommand 31 "spago-tests" 32 { 33 __noChroot = true; 34 nativeBuildInputs = [ 35 nodejs 36 purescript 37 spago 38 ]; 39 } 40 '' 41 # spago expects HOME to be set because it creates a cache file under 42 # home. 43 HOME=$(pwd) 44 45 spago --verbose init 46 spago --verbose build 47 spago --verbose test 48 49 touch $out 50 ''; 51 }; 52}) 53