diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2023-06-10 23:01:53 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2023-06-23 18:12:57 -0400 |
commit | badd5fe16d04828bdd6d38b9ec3f237555760e0c (patch) | |
tree | 0f3f1e8d1e147b06353fcbfe5336b6db96c48e21 /flake.nix | |
parent | unicode, changes in use of symbols to represent things (diff) |
nix configure
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 67 |
1 files changed, 43 insertions, 24 deletions
@@ -73,7 +73,7 @@ inherit installPhase; inherit postInstall; }; - spine-dmd = stdenv.mkDerivation { + spine-overlay-dmd = stdenv.mkDerivation { inherit pname; inherit version; meta.mainProgram = "spine-dmd"; @@ -92,7 +92,7 @@ inherit installPhase; inherit postInstall; }; - spine-ldc = stdenv.mkDerivation { + spine-overlay-ldc = stdenv.mkDerivation { inherit pname; inherit version; meta.mainProgram = "spine-ldc"; @@ -111,7 +111,26 @@ inherit installPhase; inherit postInstall; }; - #spine-gdc = stdenv.mkDerivation { + spine-nixpkgs-ldc = stdenv.mkDerivation { + inherit pname; + inherit version; + meta.mainProgram = "spine-ldc"; + executable = true; + src = self; + inherit shell; + inherit devEnv; + buildInputs = with pkgs; [sqlite]; + nativeBuildInputs = with pkgs; [dub ldc gnumake]; + buildPhase = '' + runHook preBuild + dub build --cache=local --compiler=$(type -P ldc2) --build=ldc2 --combined --skip-registry=all + runHook postBuild + ''; + inherit checkPhase; + inherit installPhase; + inherit postInstall; + }; + #spine-overlay-gdc = stdenv.mkDerivation { # inherit pname; # inherit version; # meta.mainProgram = "spine-gdc"; @@ -147,57 +166,57 @@ ''; in with pkgs-ovl; { - devShell = mkShell { + dsh-overlay = mkShell { name = "spine base dev shell"; inherit shell; inherit devEnv; #buildInputs = [ sqlite ]; #nativeBuildInputs = [ dub dmd ldc gdc gnumake ]; packages = [ - sqlite ldc #dmd dub gnumake + sqlite ]; inherit shellHook; }; - devShell-dmd = mkShell { + dsh-overlay-dmd-dub = mkShell { name = "spine base dev shell"; inherit shell; inherit devEnv; #buildInputs = [ sqlite ]; #nativeBuildInputs = [ dub dmd ldc gdc gnumake ]; packages = [ - sqlite dmd dub gnumake + sqlite ]; inherit shellHook; }; - devShell-ldc = mkShell { + dsh-overlay-ldc-dub = mkShell { name = "spine base dev shell"; inherit shell; inherit devEnv; #buildInputs = [ sqlite ]; #nativeBuildInputs = [ dub dmd ldc gdc gnumake ]; packages = [ - sqlite ldc dub gnumake + sqlite ]; inherit shellHook; }; - devShell-epub = mkShell { + dsh-epub = mkShell { name = "spine dev shell for epub output"; inherit shell; inherit devEnv; packages = [ - dub - #dmd ldc + #dmd + dub gnumake sqlite libxml2 @@ -217,27 +236,27 @@ ]; inherit shellHook; }; - devShell-html = mkShell { + dsh-html = mkShell { name = "spine dev shell for latex & pdf output"; inherit shell; inherit devEnv; packages = [ - dub - #dmd ldc + #dmd + dub gnumake sqlite ]; inherit shellHook; }; - devShell-latex-pdf = mkShell { + dsh-latex-pdf = mkShell { name = "spine dev shell for latex & pdf output"; inherit shell; inherit devEnv; packages = [ - dub - #dmd ldc + #dmd + dub gnumake sqlite source-sans-pro @@ -247,27 +266,27 @@ ]; inherit shellHook; }; - devShell-sqlite = mkShell { + dsh-sqlite = mkShell { name = "spine dev shell for latex & pdf output"; inherit shell; inherit devEnv; packages = [ - dub - #dmd ldc + #dmd + dub gnumake sqlite ]; inherit shellHook; }; - devShell-i18n = mkShell { + dsh-i18n = mkShell { name = "spine dev shell internationalization, po4a"; inherit shell; inherit devEnv; packages = [ - dub - #dmd ldc + #dmd + dub gnumake sqlite perl534Packages.Po4a |