{ stdenv, fetchgit, pkgs }:

let
  url = "https://git.fudo.org/fudo-public/backplane-dns.git";
  version = "0.1";

in stdenv.mkDerivation {
  name = "backplane-dns-${version}";

  src = fetchgit {
    url = url;
    rev = "c552394e55816541a9426974c5f8e6f1f83bf195";
    sha256 = "0r61bwj5a2dvzl41cwdf2pdnhdsmp3kzfyxa5x5hsg67al6s7vi8";
    fetchSubmodules = false;
  };

  phases = ["installPhase"];

  installPhase = ''
    mkdir -p "$out/lib/common-lisp/backplane-dns"
    cp "$src/backplane-dns.asd" "$out/lib/common-lisp/backplane-dns"
    cp -R $src/*.lisp "$out/lib/common-lisp/backplane-dns"
  '';
}