feat(build): Add initial Nix build derivation
This commit is contained in:
parent
4ef98fc2ba
commit
7258f31d29
1 changed files with 16 additions and 0 deletions
16
default.nix
Normal file
16
default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Nix derivation to build a release version of journaldriver.
|
||||
#
|
||||
# Note: This does not currently use Carnix due to an issue with
|
||||
# linking against the `systemd.dev` derivation for libsystemd.
|
||||
|
||||
{ pkgs ? import <nixpkgs> {}}:
|
||||
|
||||
with pkgs; rustPlatform.buildRustPackage {
|
||||
name = "journaldriver";
|
||||
version = "0.1.0";
|
||||
cargoSha256 = "05iwidi66f0lssbkgn13rnvlqmajdbdp859wv2a1xqvi8fcpqsmy";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildInputs = [ pkgconfig openssl systemd.dev ];
|
||||
}
|
Loading…
Reference in a new issue