summaryrefslogtreecommitdiff
path: root/pkgs/chan-downloader.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-31 14:40:38 -0700
committerFuwn <[email protected]>2024-08-31 14:40:38 -0700
commit81b1033e9717fbc7aed411c023a2c9364ca1d249 (patch)
tree387308cd1fc40e9b95789db7c3fbfde260a08179 /pkgs/chan-downloader.nix
parenttings (diff)
downloadnixos-config-81b1033e9717fbc7aed411c023a2c9364ca1d249.tar.xz
nixos-config-81b1033e9717fbc7aed411c023a2c9364ca1d249.zip
t
Diffstat (limited to 'pkgs/chan-downloader.nix')
-rw-r--r--pkgs/chan-downloader.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/chan-downloader.nix b/pkgs/chan-downloader.nix
new file mode 100644
index 0000000..e63983a
--- /dev/null
+++ b/pkgs/chan-downloader.nix
@@ -0,0 +1,24 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, openssl
+,
+}:
+let
+ rustUtils = import ../lib/rust-utils.nix {
+ inherit lib rustPlatform fetchFromGitHub;
+ };
+in
+rustUtils.mkRustPackage {
+ pname = "chan-downloader";
+ version = "e418e909ab90c8700d51b08e170051804a6919d2";
+ githubOwner = "Fuwn";
+ githubHash = "sha256-x0pKdaQFPXbdK7BjzZNA9Bq1RL2+ipe8DWav9fbLDp4=";
+ cargoHash = "sha256-G0vcigHj83d9j6qMc23NTzdFMrFsNNSYBhHZYyAJhYo=";
+ description = "CLI to download all images/webms in a 4chan thread";
+ license = lib.licenses.mit;
+ maintainers = with lib.maintainers; [ Fuwn ];
+ nativeBuildInputs = [ pkg-config ];
+ buildInputs = [ openssl.dev ];
+}