forked from jan-leila/nix-config
36 lines
697 B
Nix
36 lines
697 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
...
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "e621-downloader";
|
|
version = "1.7.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "McSib";
|
|
repo = "e621_downloader";
|
|
rev = version;
|
|
hash = "sha256-4z+PrCv8Mlp0VOJ5Akv1TXrJir1Ws/+45a6VCZGuCtk=";
|
|
};
|
|
|
|
cargoHash = "sha256-/yqNYjP7BuFQWilL2Ty+E5rd8qXj30twteptHx7cLRo=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "E621 and E926 downloader made in Rust";
|
|
homepage = "https://github.com/McSib/e621_downloader";
|
|
license = licenses.asl20;
|
|
mainProgram = "e621_downloader";
|
|
};
|
|
}
|