nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 openssl,
6 pkg-config,
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 cargoHash = "sha256-xYtdGhuieFudfJz+LxUjP7mV8uItaIvLahCH7vBWTtg=";
21
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ openssl ];
24
25 # package does not contain tests as of v0.3.3
26 docCheck = false;
27
28 meta = with lib; {
29 description = "CLI tool to download saved media from Reddit";
30 homepage = "https://github.com/manojkarthick/reddsaver";
31 license = with licenses; [
32 mit # or
33 asl20
34 ];
35 maintainers = [ maintainers.manojkarthick ];
36 mainProgram = "reddsaver";
37 };
38
39}