36 lines
780 B
Nix
36 lines
780 B
Nix
{
|
|
description = "lead-rust";
|
|
|
|
inputs = {
|
|
naersk.url = "github:nix-community/naersk";
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
naersk,
|
|
nixpkgs,
|
|
}: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {inherit system;};
|
|
naerskLib = pkgs.callPackage naersk {};
|
|
buildInputs = [pkgs.openssl];
|
|
nativeBuildInputs = [pkgs.pkg-config];
|
|
in {
|
|
packages.${system}.default = naerskLib.buildPackage {
|
|
src = ./.;
|
|
buildInputs = buildInputs;
|
|
nativeBuildInputs = nativeBuildInputs;
|
|
};
|
|
|
|
# devShells.${system}.default = pkgs.mkShell {
|
|
# packages = buildInputs;
|
|
# inputsFrom = nativeBuildInputs;
|
|
#
|
|
# shellHook = ''
|
|
# exec zsh
|
|
# '';
|
|
# };
|
|
};
|
|
}
|