Add dhallPackages and add current Prelude

Dhall is a non-turing complete programming language.
This commit is contained in:
Profpatsch 2018-10-25 21:10:03 +02:00
parent e594af80c9
commit 34bf218b16
4 changed files with 40 additions and 0 deletions

4
.github/CODEOWNERS vendored
View File

@ -113,3 +113,7 @@
/nixos/modules/services/databases/postgresql.xml @thoughtpolice /nixos/modules/services/databases/postgresql.xml @thoughtpolice
/nixos/modules/services/databases/postgresql.nix @thoughtpolice /nixos/modules/services/databases/postgresql.nix @thoughtpolice
/nixos/tests/postgresql.nix @thoughtpolice /nixos/tests/postgresql.nix @thoughtpolice
# Dhall
/pkgs/development/dhall-modules @Gabriel439 @Profpatsch
/pkgs/development/interpreters/dhall @Gabriel439 @Profpatsch

View File

@ -0,0 +1,9 @@
{ pkgs }:
# TODO: add into the toplevel fixpoint instead of using rec
rec {
prelude = prelude_3_0_0;
prelude_3_0_0 = pkgs.callPackage ./prelude/v3.nix {};
}

View File

@ -0,0 +1,25 @@
{ stdenv, lib, fetchFromGitHub }:
stdenv.mkDerivation {
name = "dhall-prelude";
src = fetchFromGitHub {
owner = "dhall-lang";
repo = "dhall-lang";
# Commit where the v3.0.0 prelude folder was merged into dhall-lang
# and a LICENSE file has been added.
rev = "f6aa9399f1ac831d66c34104abe6856023c5b2df";
sha256 = "0kqjgh3y1l3cb3rj381j7c09547g1vh2dsfzpm08y1qajhhf9vgf";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
cp -r Prelude $out
'';
meta = {
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ Profpatsch ];
};
}

View File

@ -7549,6 +7549,8 @@ with pkgs;
dhall-text = haskell.lib.justStaticExecutables haskellPackages.dhall-text; dhall-text = haskell.lib.justStaticExecutables haskellPackages.dhall-text;
dhallPackages = import ../development/dhall-modules { inherit pkgs; };
duktape = callPackage ../development/interpreters/duktape { }; duktape = callPackage ../development/interpreters/duktape { };
beam = callPackage ./beam-packages.nix { }; beam = callPackage ./beam-packages.nix { };