reorganisierung
This commit is contained in:
27
package.nix
27
package.nix
@@ -4,10 +4,27 @@
|
||||
stdenv,
|
||||
...
|
||||
}: 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";
|
||||
ghcExeOptions = lib.concatStringsSep " " ghcFlags;
|
||||
ghcFlags = [
|
||||
"-O"
|
||||
"-Wall"
|
||||
"-Widentities"
|
||||
"-Widentities"
|
||||
"-Wincomplete-record-updates"
|
||||
"-Wincomplete-uni-patterns"
|
||||
"-Wmissing-export-lists"
|
||||
"-Wmossing-home-modules"
|
||||
"-Wpartial-fields"
|
||||
"-Wredundant-constraints"
|
||||
"-threaded"
|
||||
"-rtsopts"
|
||||
"-with-rtsopts=-N"
|
||||
# hs-glsl
|
||||
"-i./lib/hs-glsl/src/Language/GLSL.hs"
|
||||
# src
|
||||
"-i./src"
|
||||
];
|
||||
ghcPackages = p: [
|
||||
p.bytestring
|
||||
p.data-default
|
||||
p.GLFW-b
|
||||
p.OpenGL
|
||||
p.relude
|
||||
@@ -16,7 +33,7 @@ in
|
||||
stdenv.mkDerivation {
|
||||
pname = "haskengl";
|
||||
version = "0.1.0";
|
||||
src = ./src;
|
||||
src = ./.;
|
||||
nativeBuildInputs = [
|
||||
(haskellPackages.ghcWithPackages ghcPackages)
|
||||
];
|
||||
@@ -25,7 +42,7 @@ in
|
||||
configurePhase = ''
|
||||
'';
|
||||
buildPhase = ''
|
||||
ghc ${ghcExeOptions} ./Main.hs -o ./Main
|
||||
ghc ${ghcExeOptions} ./src/Main.hs -o ./Main
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
||||
Reference in New Issue
Block a user