Merge pull request #177051 from freezeboy/update-plik
plik: 1.3.4 -> 1.3.6
This commit is contained in:
commit
95cf41d5f5
|
@ -1,13 +1,13 @@
|
|||
{ lib, fetchurl, makeWrapper, runCommand, callPackage }:
|
||||
|
||||
let
|
||||
version = "1.3.4";
|
||||
version = "1.3.6";
|
||||
|
||||
programs = callPackage ./programs.nix { };
|
||||
|
||||
webapp = fetchurl {
|
||||
url = "https://github.com/root-gg/plik/releases/download/${version}/plik-${version}-linux-amd64.tar.gz";
|
||||
sha256 = "1qp96va5l0m7jp4g007bhgcpf4ydg3cpg2x9wa9rkpp9k1svdhjy";
|
||||
sha256 = "sha256-UGzevhZDfQBoFgPZQIs5Ftgz1cUHGfY/IRSEWQHFVSQ=";
|
||||
};
|
||||
|
||||
in
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, fetchurl, makeWrapper, runCommand }:
|
||||
|
||||
let
|
||||
version = "1.3.4";
|
||||
version = "1.3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "root-gg";
|
||||
repo = "plik";
|
||||
rev = version;
|
||||
sha256 = "0kmcidnjw26vnxx9h3swcg72i507awg89s4nfxw6rwbyw36iiiqf";
|
||||
sha256 = "sha256-Xfk7+60iB5/qJh/6j6AxW0aKXuzdINRfILXRzOFejW4=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
@ -18,12 +18,18 @@ let
|
|||
maintainers = with maintainers; [ freezeboy ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace server/common/version.go \
|
||||
--replace '"0.0.0"' '"${version}"'
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
|
||||
plik = buildGoModule {
|
||||
pname = "plik";
|
||||
inherit version meta src vendorSha256;
|
||||
inherit version meta src vendorSha256 postPatch;
|
||||
|
||||
subPackages = [ "client" ];
|
||||
postInstall = ''
|
||||
|
@ -33,7 +39,7 @@ in
|
|||
|
||||
plikd-unwrapped = buildGoModule {
|
||||
pname = "plikd-unwrapped";
|
||||
inherit version src vendorSha256;
|
||||
inherit version src vendorSha256 postPatch;
|
||||
|
||||
subPackages = [ "server" ];
|
||||
postFixup = ''
|
||||
|
|
Loading…
Reference in a new issue