-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathflake.nix
More file actions
22 lines (21 loc) · 773 Bytes
/
flake.nix
File metadata and controls
22 lines (21 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
inputs = {
# Cannot using naersk due to lack of `arweave-rs` package built
# naersk.url = "github:nix-community/naersk/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
# naersk-lib = pkgs.callPackage naersk { };
in
{
# defaultPackage = naersk-lib.buildPackage ./.;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ cargo rustc rustfmt rust-analyzer pre-commit rustPackages.clippy pkg-config openssl postgresql ];
RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
};
});
}