generated from ElnuDev/rust-project
Clean up flake.nix
This commit is contained in:
parent
f1d2e59b89
commit
1f4a8a2181
2 changed files with 21 additions and 56 deletions
42
flake.nix
42
flake.nix
|
@ -6,12 +6,12 @@
|
|||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, rust-overlay, flake-utils }:
|
||||
outputs = { self, nixpkgs, rust-overlay }:
|
||||
let
|
||||
overlays = [ (import rust-overlay) ];
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs {
|
||||
inherit overlays;
|
||||
system = "x86_64-linux";
|
||||
inherit system overlays;
|
||||
};
|
||||
rustSettings = with pkgs; {
|
||||
src = ./.;
|
||||
|
@ -19,26 +19,24 @@
|
|||
buildInputs = [ openssl ];
|
||||
cargoHash = nixpkgs.lib.fakeHash;
|
||||
};
|
||||
in
|
||||
with pkgs; rec {
|
||||
devShells.x86_64-linux.default = mkShell {
|
||||
in rec {
|
||||
devShells.${system}.default = with pkgs; mkShell {
|
||||
packages = [ bacon ];
|
||||
inputsFrom = [
|
||||
packages.x86_64-linux.tatoeba
|
||||
packages.x86_64-linux.images
|
||||
];
|
||||
inputsFrom = with packages.${system}; [ tatoeba images ];
|
||||
};
|
||||
packages.${system} = {
|
||||
tatoeba = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "tatoeba";
|
||||
version = "0.1.0";
|
||||
buildAndTestSubdir = "tatoeba";
|
||||
cargoHash = "sha256-74Jq3saaUyPvNm/0croVOBuMtpN8xT3S4z37nutJdw4=";
|
||||
});
|
||||
images = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "images";
|
||||
version = "0.1.0";
|
||||
buildAndTestSubdir = "images";
|
||||
cargoHash = "sha256-fKmTZTcJj/eYCQE9cjiXB/Pt6BdJNZ/e5cSRgbuPIJs=";
|
||||
});
|
||||
};
|
||||
packages.x86_64-linux.tatoeba = rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "tatoeba";
|
||||
version = "0.1.0";
|
||||
buildAndTestSubdir = "tatoeba";
|
||||
cargoHash = "sha256-74Jq3saaUyPvNm/0croVOBuMtpN8xT3S4z37nutJdw4=";
|
||||
});
|
||||
packages.x86_64-linux.images = rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "images";
|
||||
version = "0.1.0";
|
||||
buildAndTestSubdir = "images";
|
||||
cargoHash = "sha256-fKmTZTcJj/eYCQE9cjiXB/Pt6BdJNZ/e5cSRgbuPIJs=";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue