pocket accept cors

This commit is contained in:
BOTAlex 2025-10-04 02:23:05 +02:00
parent e70aee4ab6
commit 134fe2e279
10 changed files with 320 additions and 219 deletions

View file

@ -0,0 +1,25 @@
{ lib, pkgs, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "shreddit";
version = "1.1.1"; # pick the crate version you want
src = pkgs.fetchCrate {
inherit pname version;
sha256 =
"sha256-ERcQZ7LLR9kfI1WMCr70EopmuPmK4Y7eXnhM7djvEI4="; # fill after first build
};
cargoHash =
"sha256-9s6wmB4YqKmyHKDS2b5keEYFDBerpdQxtNY1wVqGDxg="; # fill after first build
nativeBuildInputs = [ pkgs.pkg-config ];
buildInputs = [ pkgs.openssl ];
meta = with lib; {
description = "Shreddit CLI (Rust crate)";
license = licenses.mit; # adjust if needed
mainProgram = "shreddit";
};
}