diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-02-09T12·48+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2011-02-09T12·48+0000 |
commit | 3087b3f7513ce713e0b759f63b9a4e9142e46f82 (patch) | |
tree | ef9c92ef186a8336dc8d293f37052247a008cd06 /make/lib/default.nix | |
parent | eb94581d399b8d0945b883b14c4a892fdab95dfc (diff) |
* Obsolete.
Diffstat (limited to 'make/lib/default.nix')
-rw-r--r-- | make/lib/default.nix | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/make/lib/default.nix b/make/lib/default.nix deleted file mode 100644 index 81440ca6a770..000000000000 --- a/make/lib/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -rec { - - # Should point at your Nixpkgs installation. - pkgPath = ./pkgs; - - pkgs = import (pkgPath + /system/all-packages.nix) {}; - - stdenv = pkgs.stdenv; - - - compileC = - { main - , localIncludes ? "auto" - , localIncludePath ? [] - , cFlags ? "" - , sharedLib ? false - }: - stdenv.mkDerivation { - name = "compile-c"; - builder = ./compile-c.sh; - - localIncludes = - if localIncludes == "auto" then - dependencyClosure { - scanner = main: - import (findIncludes { - inherit main; - }); - searchPath = localIncludePath; - startSet = [main]; - } - else - localIncludes; - - inherit main; - - cFlags = [ - cFlags - (if sharedLib then ["-fpic"] else []) - (map (p: "-I" + (relativise (dirOf main) p)) localIncludePath) - ]; - }; - - - findIncludes = {main}: stdenv.mkDerivation { - name = "find-includes"; - realBuilder = pkgs.perl ~ "bin/perl"; - args = [ ./find-includes.pl ]; - inherit main; - }; - - - link = {objects, programName ? "program", libraries ? []}: stdenv.mkDerivation { - name = "link"; - builder = ./link.sh; - inherit objects programName libraries; - }; - - - makeLibrary = {objects, libraryName ? [], sharedLib ? false}: - # assert sharedLib -> fold (obj: x: assert obj.sharedLib && x) false objects - stdenv.mkDerivation { - name = "library"; - builder = ./make-library.sh; - inherit objects libraryName sharedLib; - }; - - -} |