mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #133413 from jpetrucciani/add_ossutil
ossutil: init at 1.7.6
This commit is contained in:
commit
8388b038a8
|
@ -5314,6 +5314,12 @@
|
|||
githubId = 20675;
|
||||
name = "Joël Perras";
|
||||
};
|
||||
jpetrucciani = {
|
||||
email = "j@cobi.dev";
|
||||
github = "jpetrucciani";
|
||||
githubId = 8117202;
|
||||
name = "Jacobi Petrucciani";
|
||||
};
|
||||
jpierre03 = {
|
||||
email = "nix@prunetwork.fr";
|
||||
github = "jpierre03";
|
||||
|
|
33
pkgs/tools/admin/ossutil/default.nix
Normal file
33
pkgs/tools/admin/ossutil/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
||||
|
||||
buildGoModule rec {
|
||||
version = "1.7.6";
|
||||
pname = "ossutil";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aliyun";
|
||||
repo = "ossutil";
|
||||
rev = version;
|
||||
sha256 = "1hkdk0hidnm7vz320i7s4z7jngx2j70acc93agii2b3r2bb91l3d";
|
||||
};
|
||||
|
||||
# this patch is required to add go mods to fetch dependencies
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/aliyun/ossutil/commit/64067e979fb24ffb198a0c4eca718e81b63f514e.patch";
|
||||
sha256 = "2pn0BcbNNL+iMema54LRpG/ca5kyDugLIZQ/TMhYG/8=";
|
||||
})
|
||||
];
|
||||
|
||||
vendorSha256 = "lem9Jg4Ywv3qcIwhiZHNi1VH5HxxNr6mnefOLCzPL70=";
|
||||
|
||||
# don't run tests as they require secret access keys that only travis has
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/aliyun/ossutil";
|
||||
description = "A user friendly command line tool to access Alibaba Cloud OSS";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jpetrucciani ];
|
||||
};
|
||||
}
|
|
@ -3203,6 +3203,8 @@ with pkgs;
|
|||
|
||||
odafileconverter = libsForQt5.callPackage ../applications/graphics/odafileconverter {};
|
||||
|
||||
ossutil = callPackage ../tools/admin/ossutil {};
|
||||
|
||||
pastel = callPackage ../applications/misc/pastel {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue