Closer to 'correct' backplane-dns-server
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{ pkgs, localLispPackages, ... }:
|
||||
|
||||
with pkgs.lib;
|
||||
let
|
||||
launcher = pkgs.writeText "launch-backplane-dns.lisp" ''
|
||||
(require :asdf)
|
||||
(asdf:load-system :backplane-dns)
|
||||
(backplane-dns:start-listener-with-env)
|
||||
(loop (sleep 600))
|
||||
'';
|
||||
|
||||
launcherScript = pkgs.writeShellScriptBin "launch-backplane-dns.sh" ''
|
||||
${pkgs.lispPackages.clwrapper}/bin/common-lisp.sh --load ${launcher}
|
||||
'';
|
||||
|
||||
in pkgs.stdenv.mkDerivation {
|
||||
pname = "backplane-dns-server";
|
||||
version = "0.1.0";
|
||||
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
asdf
|
||||
sbcl
|
||||
lispPackages.clwrapper
|
||||
localLispPackages.backplane-dns
|
||||
];
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
cp ${launcherScript}/bin/launch-backplane-dns.sh "$out/bin"
|
||||
'';
|
||||
}
|
||||
+11
-6
@@ -65,11 +65,11 @@ in {
|
||||
inherit (pkgs) stdenv fetchurl makeWrapper cups dpkg a2ps ghostscript gnugrep gnused coreutils file perl which;
|
||||
};
|
||||
|
||||
backplane-dns = import ./backplane-dns.nix {
|
||||
pkgs = pkgs;
|
||||
stdenv = pkgs.stdenv;
|
||||
fetchgit = pkgs.fetchgit;
|
||||
};
|
||||
# backplane-dns = import ./backplane-dns.nix {
|
||||
# pkgs = pkgs;
|
||||
# stdenv = pkgs.stdenv;
|
||||
# fetchgit = pkgs.fetchgit;
|
||||
# };
|
||||
|
||||
backplane-dns-client = import ./backplane-dns-client.nix {
|
||||
pkgs = pkgs;
|
||||
@@ -112,9 +112,14 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
localLispPackages = import ./lisp {
|
||||
localLispPackages = (import ./lisp {
|
||||
inherit lib;
|
||||
pkgs = unstablePkgs;
|
||||
}) // unstablePkgs.lispPackages;
|
||||
|
||||
backplane-dns-server = import ./backplane-dns-server.nix {
|
||||
inherit localLispPackages;
|
||||
pkgs = unstablePkgs;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user