forked from jan-leila/nix-config
feat: instealled e621-downloader
This commit is contained in:
parent
546cc97b57
commit
69c10a87b6
5 changed files with 59 additions and 1 deletions
|
|
@ -47,5 +47,8 @@
|
|||
(final: prev: {
|
||||
cline = pkgs.callPackage ./cline/default.nix {};
|
||||
})
|
||||
(final: prev: {
|
||||
e621-downloader = pkgs.callPackage ./e621-downloader.nix {};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
36
modules/common-modules/pkgs/e621-downloader.nix
Normal file
36
modules/common-modules/pkgs/e621-downloader.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
|
|
@ -50,5 +50,6 @@
|
|||
./proton-mail-pwa.nix
|
||||
./proton-calendar-pwa.nix
|
||||
./matrix-cyberia-pwa.nix
|
||||
./e621-downloader.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
16
modules/home-manager-modules/programs/e621-downloader.nix
Normal file
16
modules/home-manager-modules/programs/e621-downloader.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.programs.e621-downloader = {
|
||||
enable = lib.mkEnableOption "enable e621-downloader";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.programs.e621-downloader.enable {
|
||||
home.packages = with pkgs; [
|
||||
e621-downloader
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue