packageify
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
ghcExeOptions = "-O -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -main-is Examples.main";
|
ghcExeOptions = "-O -Wall -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N -main-is Language.GLSL.Examples.main";
|
||||||
ghcPackages = p: [
|
ghcPackages = p: [
|
||||||
p.relude
|
p.relude
|
||||||
p.pretty-simple
|
p.pretty-simple
|
||||||
@@ -22,7 +22,7 @@ in
|
|||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
'';
|
'';
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
ghc ${ghcExeOptions} ./Examples.hs -o ./Main
|
ghc ${ghcExeOptions} ./Language/GLSL/Examples.hs -o ./Main
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
{-# LANGUAGE NoImplicitPrelude #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
module Types
|
module Language.GLSL
|
||||||
( Program
|
( Program
|
||||||
, Expressions
|
, Expressions
|
||||||
, Expression(..)
|
, Expression(..)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
{-# LANGUAGE NoImplicitPrelude #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
module Examples (main) where
|
module Language.GLSL.Examples (main) where
|
||||||
|
|
||||||
-- IMPORTS --
|
-- IMPORTS --
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ import Text.Pretty.Simple
|
|||||||
|
|
||||||
import Relude
|
import Relude
|
||||||
|
|
||||||
import Types
|
import Language.GLSL
|
||||||
|
|
||||||
-- MAIN --
|
-- MAIN --
|
||||||
|
|
||||||
Reference in New Issue
Block a user