packages/sips: init at 0.3.0
This commit is contained in:
parent
2162bf9991
commit
d2ff96303b
2 changed files with 36 additions and 0 deletions
|
@ -27,4 +27,6 @@ in
|
||||||
minio-console = pkgs.callPackage ./servers/minio-console { };
|
minio-console = pkgs.callPackage ./servers/minio-console { };
|
||||||
|
|
||||||
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
privatevoid-smart-card-ca-bundle = pkgs.callPackage ./data/privatevoid-smart-card-certificate-authority-bundle.nix { };
|
||||||
|
|
||||||
|
sips = pkgs.callPackage ./servers/sips { };
|
||||||
}
|
}
|
||||||
|
|
34
packages/servers/sips/default.nix
Normal file
34
packages/servers/sips/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "sips";
|
||||||
|
version = "0.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "DeedleFake";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0v5g4zz7j6150yk7k3svh3ffgr0ghzp5yl01bpq99i0lkpliidpx";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-JZ8wtfu+jLikTKjYt+1Zt05jNVahEyRU/ciK2n+AACc=";
|
||||||
|
|
||||||
|
subPackages = [ "cmd/sips" "cmd/sipsctl" ];
|
||||||
|
|
||||||
|
# HACK: this can't cross-compile
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions
|
||||||
|
$out/bin/sipsctl completion bash > $out/share/bash-completion/completions/sipsctl
|
||||||
|
$out/bin/sipsctl completion zsh > $out/share/zsh/site-functions/_sipsctl
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Simple IPFS Pinning Service";
|
||||||
|
homepage = "https://github.com/DeedleFake/sips";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue