mirror of
https://github.com/MagicBOTAlex/nixos-server.git
synced 2025-12-13 01:35:28 +01:00
pocket accept cors
This commit is contained in:
parent
e70aee4ab6
commit
134fe2e279
10 changed files with 320 additions and 219 deletions
25
modules/customPackages/shreddit/shreddit.nix
Normal file
25
modules/customPackages/shreddit/shreddit.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue