add build configs
This commit is contained in:
parent
11c2c7f79f
commit
00a584c8f0
2 changed files with 17 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/target
|
||||
.devenv
|
||||
.direnv
|
||||
/result
|
||||
|
|
16
flake.nix
16
flake.nix
|
@ -65,5 +65,21 @@
|
|||
})
|
||||
];
|
||||
};
|
||||
packages.default = let
|
||||
toolchain = inputs.fenix.packages.${system}.minimal.toolchain;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
(pkgs.makeRustPlatform {
|
||||
cargo = toolchain;
|
||||
rustc = toolchain;
|
||||
})
|
||||
.buildRustPackage {
|
||||
pname = "chatthing";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
builtInputs = [pkgs.libpqxx pkgs.openssl];
|
||||
nativeBuildInputs = [pkgs.pkg-config];
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue