generated from ElnuDev/rust-project
Add package metadata to flake.nix
This commit is contained in:
parent
13a048b185
commit
842b6f92dc
1 changed files with 12 additions and 0 deletions
12
flake.nix
12
flake.nix
|
@ -19,6 +19,12 @@
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
cargoHash = nixpkgs.lib.fakeHash;
|
cargoHash = nixpkgs.lib.fakeHash;
|
||||||
};
|
};
|
||||||
|
meta = with nixpkgs.lib; {
|
||||||
|
homepage = "https://jichan.org";
|
||||||
|
license = [ licenses.gpl3 ];
|
||||||
|
platforms = [ system ];
|
||||||
|
maintainers = with maintainers; [ elnudev ];
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
devShells.${system}.default = with pkgs; mkShell {
|
devShells.${system}.default = with pkgs; mkShell {
|
||||||
packages = [ bacon ];
|
packages = [ bacon ];
|
||||||
|
@ -30,12 +36,18 @@
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
buildAndTestSubdir = "tatoeba";
|
buildAndTestSubdir = "tatoeba";
|
||||||
cargoHash = "sha256-74Jq3saaUyPvNm/0croVOBuMtpN8xT3S4z37nutJdw4=";
|
cargoHash = "sha256-74Jq3saaUyPvNm/0croVOBuMtpN8xT3S4z37nutJdw4=";
|
||||||
|
meta = meta // {
|
||||||
|
description = "A proxy of the Tatoeba API with no CORS restrictions.";
|
||||||
|
};
|
||||||
});
|
});
|
||||||
images = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
images = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||||
pname = "images";
|
pname = "images";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
buildAndTestSubdir = "images";
|
buildAndTestSubdir = "images";
|
||||||
cargoHash = "sha256-fKmTZTcJj/eYCQE9cjiXB/Pt6BdJNZ/e5cSRgbuPIJs=";
|
cargoHash = "sha256-fKmTZTcJj/eYCQE9cjiXB/Pt6BdJNZ/e5cSRgbuPIJs=";
|
||||||
|
meta = meta // {
|
||||||
|
description = "An API for fetching images of a query, sourced from Microsoft Bing.";
|
||||||
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue