wasmcloud/default.nix

22 lines
572 B
Nix
Raw Permalink Normal View History

2020-10-31 12:43:38 +00:00
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
with pkgs;
let
rust = import ./nix/rust.nix { inherit sources; };
naersk = pkgs.callPackage sources.naersk {
rustc = rust;
cargo = rust;
};
src = builtins.filterSource
(path: type: type != "directory" || builtins.baseNameOf path != "target")
./.;
2020-10-31 12:48:13 +00:00
pahi = pkgs.callPackage sources.pahi {
inherit sources;
};
2020-10-31 12:43:38 +00:00
in {
backend = naersk.buildPackage {
name = "wasmcloud_backend";
inherit src;
2020-10-31 12:48:13 +00:00
buildInputs = with pkgs; [ openssl pkg-config postgresql ];
2020-10-31 12:43:38 +00:00
};
}