Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchFromGitHub 3, rustPlatform 4, openssl 5, pkg-config 6, Security 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "reddsaver"; 11 version = "0.4.0"; 12 13 src = fetchFromGitHub { 14 owner = "manojkarthick"; 15 repo = "reddsaver"; 16 rev = "v${version}"; 17 sha256 = "07xsrc0w0z7w2w0q44aqnn1ybf9vqry01v3xr96l1xzzc5mkqdzf"; 18 }; 19 20 cargoSha256 = "0y94dywligcsqs01d228w454ssrzg31p4j8mni9flcr4v29z3rwp"; 21 22 nativeBuildInputs = [ pkg-config ]; 23 buildInputs = [ openssl ] 24 ++ lib.optional stdenv.isDarwin Security; 25 26 # package does not contain tests as of v0.3.3 27 docCheck = false; 28 29 meta = with lib; { 30 description = "CLI tool to download saved media from Reddit"; 31 homepage = "https://github.com/manojkarthick/reddsaver"; 32 license = with licenses; [ mit /* or */ asl20 ]; 33 maintainers = [ maintainers.manojkarthick ]; 34 }; 35 36}