From 7d2931b5abae3e9781c657ecb007fcd9aeef4f6c Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 9 Jul 2009 22:30:19 +0000 Subject: [PATCH] Adding Falcon multiparadigm programming language. It has macros and non-trivial syntax at once, which seems interesting in itself.. svn path=/nixpkgs/trunk/; revision=16299 --- .../interpreters/falcon/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/interpreters/falcon/default.nix diff --git a/pkgs/development/interpreters/falcon/default.nix b/pkgs/development/interpreters/falcon/default.nix new file mode 100644 index 000000000000..9800e895400c --- /dev/null +++ b/pkgs/development/interpreters/falcon/default.nix @@ -0,0 +1,34 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.attrByPath ["version"] "0.9.2" a; + buildInputs = with a; [ + cmake + ]; +in +rec { + src = fetchurl { + url = "http://www.falconpl.org/project_dl/_official_rel/Falcon-${version}.tar.gz"; + sha256 = "0p32syiz2nc6lmmzi0078g4nzariw5ymdjkmhw6iamc0lkkb9x3i"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doDeploy"]; + + doDeploy = a.fullDepEntry ('' + ./build.sh -i -p $out + '') ["minInit" "addInputs" "doFixInterpreter" "defEnsureDir"]; + + doFixInterpreter = a.fullDepEntry ('' + sed -e "s@/bin/bash@$shell@" -i build.sh + '') ["minInit" "doUnpack"]; + + name = "falcon-" + version; + meta = { + description = "A programming language. Has macros and syntax at once."; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c5bbeb507e65..2cd54888e557 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1824,6 +1824,10 @@ let }; }); + falcon = builderDefsPackage (import ../development/interpreters/falcon) { + inherit cmake; + }; + gprolog = import ../development/compilers/gprolog { inherit fetchurl stdenv; };