-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
26 lines (26 loc) · 923 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
let
sources = import ./nix/sources.nix;
nixpkgs-mozilla = import sources.nixpkgs-mozilla;
pkgs = import sources.nixpkgs {
overlays =
[
nixpkgs-mozilla
(self: super:
let chan = self.rustChannelOf { date = "2022-01-25"; channel = "nightly"; };
in {
rustc = chan.rust;
cargo = chan.rust;
}
)
];
};
naersk = pkgs.callPackage sources.naersk {};
merged-openssl = pkgs.symlinkJoin { name = "merged-openssl"; paths = [ pkgs.openssl.out pkgs.openssl.dev ]; };
in
naersk.buildPackage {
name = "dividator";
root = pkgs.lib.sourceFilesBySuffices ./. [".rs" ".toml" ".lock" ".html" ".css" ".png" ".sh" ".sql"];
buildInputs = with pkgs; [ openssl pkgconfig clang llvm llvmPackages.libclang zlib cacert curl postgresql ];
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
OPENSSL_DIR = "${merged-openssl}";
}