New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hydron: unstable-2019-02-17 -> 3.0.4 #107810
Conversation
LGTM, but not on NixOS anymore so can't test.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Monday, December 28th, 2020 at 10:18 AM, ofborg[bot] ***@***.***> wrote:
***@***.***(https://github.com/ofborg)[bot] requested your review on: [#107810](#107810) hydron: unstable-2019-02-17 -> 3.0.4.
—
You are receiving this because your review was requested.
Reply to this email directly, [view it on GitHub](#107810 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AHIGUHDVOEKAXUBGM2CQME3SXCVULANCNFSM4VMGA5LA).
|
pkgs/servers/hydron/default.nix
Outdated
buildGoPackage { | ||
pname = "hydron-unstable"; | ||
version = "2019-02-17"; | ||
buildGoPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use buildGoModule?
That reminds me, you may want to reference this PR.
[#67666](#67666)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
…On Monday, December 28th, 2020 at 10:32 AM, Sandro ***@***.***> wrote:
@SuperSandro2000 commented on this pull request.
---------------------------------------------------------------
In [pkgs/servers/hydron/default.nix](#107810 (comment)):
> @@ -1,17 +1,18 @@
{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, ffmpeg-full, graphicsmagick
, quicktemplate, go-bindata, easyjson }:
-buildGoPackage {
- pname = "hydron-unstable";
- version = "2019-02-17";
+buildGoPackage rec {
Can we use buildGoModule?
—
You are receiving this because your review was requested.
Reply to this email directly, [view it on GitHub](#107810 (review)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AHIGUHFMJNCO2WDKEBHYEB3SXCXLDANCNFSM4VMGA5LA).
|
Result of 1 package built:
|
Trying to use buildGoModule right now |
quicktemplate and statik looks ok, but hydron has problems hydron case: github.com/chai2010/webpvendor/github.com/chai2010/webp/capi.go:24:10: fatal error: webp.h: No such file or directory and I am not sure why this happens with modules and not packages |
I think buildGoModule could properly isolate the build dependencies. |
Not sure why the header file (https://github.com/chai2010/webp/blob/master/internal/include/webp.h) is deleting while vendoring. |
diff --git a/pkgs/servers/hydron/default.nix b/pkgs/servers/hydron/default.nix
index 18dba9ce55e..1fd56e6fd2d 100644
--- a/pkgs/servers/hydron/default.nix
+++ b/pkgs/servers/hydron/default.nix
@@ -1,13 +1,11 @@
-{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, ffmpeg-full, graphicsmagick
-, quicktemplate, go-bindata, easyjson }:
+{ stdenv, buildGoModule, fetchFromGitHub
+, pkg-config, ffmpeg
+, graphicsmagick, quicktemplate, go-bindata, easyjson }:
-buildGoPackage rec {
+buildGoModule rec {
pname = "hydron";
version = "3.0.4";
- goPackagePath = "github.com/bakape/hydron";
- goDeps = ./deps.nix;
-
src = fetchFromGitHub {
owner = "bakape";
repo = "hydron";
@@ -15,9 +13,13 @@ buildGoPackage rec {
sha256 = "BfMkKwz7ITEnAIMGUHlBH/Dn9yLjWKoqFWupPo1s2cs=";
};
- nativeBuildInputs = [ pkgconfig go-bindata ];
+ vendorSha256 = "1ngig5zw0gf1mkjjsfvvn09rncb36rg274cbi3glp8wzfcr8aip3";
- buildInputs = [ ffmpeg-full graphicsmagick quicktemplate easyjson ];
+ runVend = true;
+
+ nativeBuildInputs = [ pkg-config ];
+
+ buildInputs = [ ffmpeg ];
meta = with stdenv.lib; {
homepage = "https://github.com/bakape/hydron"; |
4754dbf
to
63fc9b2
Compare
Thank you I applied it, (and removed some unused deps) |
@freezeboy please fix the merge conflict. |
63fc9b2
to
9b2896f
Compare
9b2896f
to
0f9b6e5
Compare
Fixed |
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package built:
|
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than that LGTM
0f9b6e5
to
f398566
Compare
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)