about summary refs log blame commit diff
path: root/tools/magrathea/default.nix
blob: 1d6dacf67c48203fcea2b9da0250e9a9a3786d4e (plain) (tree)



















                                                                     
                                                

     
# magrathea helps you build planets
#
# it is a tool for working with monorepos in the style of tvl's depot
{ pkgs, ... }:

pkgs.stdenv.mkDerivation {
  name = "magrathea";
  src = ./.;
  dontInstall = true;

  nativeBuildInputs = [ pkgs.chicken ];
  buildInputs = with pkgs.chickenPackages.chickenEggs; [
    matchable
    srfi-13
  ];

  propagatedBuildInputs = [ pkgs.git ];

  buildPhase = ''
    mkdir -p $out/bin
    csc -o $out/bin/mg -host -static ${./mg.scm}
  '';
}