about summary refs log tree commit diff
path: root/pkgs/by-name/tr/transfer-sh/package.nix
blob: d3b15ae2465bf89d2a78ffd81e2035274ee85541 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, fetchFromGitHub
, buildGoModule
, nix-update-script
, nixosTests
}:

buildGoModule rec {
  pname = "transfer-sh";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "dutchcoders";
    repo = "transfer.sh";
    rev = "v${version}";
    hash = "sha256-V8E6RwzxKB6KeGPer5074e7y6XHn3ZD24PQMwTxw5lQ=";
  };

  vendorHash = "sha256-C8ZfUIGT9HiQQiJ2hk18uwGaQzNCIKp/Jiz6ePZkgDQ=";

  passthru = {
    tests = {
      inherit (nixosTests) transfer-sh;
    };
    updateScript = nix-update-script { };
  };

  meta = with lib; {
    description = "Easy and fast file sharing and pastebin server with access from the command-line";
    homepage = "https://github.com/dutchcoders/transfer.sh";
    changelog = "https://github.com/dutchcoders/transfer.sh/releases";
    mainProgram = "transfer.sh";
    license = licenses.mit;
    maintainers = with maintainers; [ ocfox pinpox ];
  };
}