bakare/flake.nix

60 lines
1.3 KiB
Nix
Raw Normal View History

2021-10-22 21:20:53 +01:00
{
2022-03-07 23:05:20 +00:00
description = "Bakare: modern and simple, yet efficient backup solution";
2021-10-22 21:20:53 +01:00
inputs = {
utils.url = "github:numtide/flake-utils";
2022-03-07 23:05:20 +00:00
naersk.url = "github:nix-community/naersk";
2021-10-22 21:20:53 +01:00
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
2023-09-09 07:31:42 +01:00
outputs = {
self,
nixpkgs,
utils,
naersk,
flake-compat,
}:
utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages."${system}";
naersk-lib = naersk.lib."${system}";
in rec {
# `nix build`
packages.bakare = naersk-lib.buildPackage {
pname = "bakare";
root = ./.;
};
defaultPackage = packages.bakare;
2022-03-07 23:05:20 +00:00
2023-09-09 07:31:42 +01:00
# `nix run`
apps.bakare = utils.lib.mkApp {drv = packages.bakare;};
defaultApp = apps.bakare;
2022-03-07 23:05:20 +00:00
2023-09-09 07:31:42 +01:00
# `nix develop`
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
cacert
cargo
cargo-edit
cargo-mutants
cargo-nextest
2023-09-09 07:31:42 +01:00
cargo-outdated
cargo-release
cargo-watch
clippy
git
llvmPackages_13.llvm
nixpkgs-fmt
openssh
openssl
pkg-config
rustc
rustfmt
2023-11-04 10:46:01 +00:00
statix
2023-09-09 07:31:42 +01:00
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
2022-03-07 23:05:20 +00:00
}