{
nixpkgs ? import <nixpkgs> {},
}:
let
inherit (nixpkgs) lib pkgs;
buildInputs = with pkgs; [
openssl
];
nativeBuildInputs = with pkgs; [
pkg-config
];
in {
qbt-clean = pkgs.rustPlatform.buildRustPackage {
pname = "qbt-clean";
version = "0.0.0";
inherit buildInputs nativeBuildInputs;
cargoLock.lockFile = ./Cargo.lock;
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./Cargo.lock
./Cargo.toml
./src
];
};
dontStrip = true;
};
shell = pkgs.mkShell {
buildInputs = buildInputs;
nativeBuildInputs = nativeBuildInputs ++ (with pkgs; [
cargo
]);
};
}