mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
4007ceb6af
* treewide Drop unneeded go 1.12 overrides * Fix packr to be go module compatible. I updated to version 2.8.0 which is the latest on master. Then due to the 2 different sets of go modules which are used, I split the build into two different derivations, then merged them togethor using symlinkJoin to have the same output structure as the existing derivation. * Remove consul dependency on go1.12 I updated the consul version to 1.7.2 and flipped it to building using modules. * Remove go1.12 from perkeep. Update the version to the latest unstable on master. * Update scaleway-cli to not be pinned to go1.12 Switched the version to 1.20 * Update prometheus-varnish-exporter to not depend on go1.12 * Update lnd to build with go1.12 Updated the version Forced only building subpackages with main to prevent panics over multiple modules in one repo * Remove go1.12 from openshift Had to update the version to 4.1.0 and do a bit of munging to get this to work * Remove go1.12 completely. These are no longer needed. * Update bazel-watcher and make it build with go 1.14
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ buildGoPackage, fetchurl, fetchFromGitHub, lib }:
|
|
|
|
let
|
|
gouiJS = fetchurl {
|
|
url = "https://storage.googleapis.com/perkeep-release/gopherjs/goui.js";
|
|
sha256 = "0xbkdpd900gnmzj8p0x38dn4sv170pdvgzcvzsq70s80p6ykkh6g";
|
|
};
|
|
|
|
publisherJS = fetchurl {
|
|
url = "https://storage.googleapis.com/perkeep-release/gopherjs/publisher.js";
|
|
sha256 = "09hd7p0xscqnh612jbrjvh3njmlm4292zd5sbqx2lg0aw688q8p2";
|
|
};
|
|
|
|
in buildGoPackage rec {
|
|
name = "perkeep-${version}";
|
|
version = "unstable-2020-03-23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "perkeep";
|
|
repo = "perkeep";
|
|
rev = "c2e31370ddefd86b6112a5d891100ea3382a4254";
|
|
sha256 = "0jf02k20ms7h60wglcq6dj3vqi9rlfww7db5iplgwznbij70c1i4";
|
|
};
|
|
|
|
goPackagePath = "perkeep.org";
|
|
|
|
buildPhase = ''
|
|
cd "$NIX_BUILD_TOP/go/src/$goPackagePath"
|
|
|
|
# Skip network fetches
|
|
sed -i '/fetchAllJS/a if true { return nil }' make.go
|
|
cp ${publisherJS} app/publisher/publisher.js
|
|
cp ${gouiJS} server/perkeepd/ui/goui.js
|
|
|
|
go run make.go
|
|
'';
|
|
|
|
# devcam is only useful when developing perkeep, we should not install it as
|
|
# part of this derivation.
|
|
postInstall = ''
|
|
rm -f $out/bin/devcam
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A way of storing, syncing, sharing, modelling and backing up content (née Camlistore)";
|
|
homepage = "https://perkeep.org";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ cstrahan kalbasit ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|