Skip to content

guetzli: init at 1.0.1 #26595

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

Merged
merged 3 commits into from
Jul 2, 2017
Merged

guetzli: init at 1.0.1 #26595

merged 3 commits into from
Jul 2, 2017

Conversation

seppeljordan
Copy link
Contributor

Motivation for this change

It would be nice to have guetzli inside nixpkgs

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip" does not apply
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@pSub pSub added the 8.has: package (new) This PR adds a new package label Jun 15, 2017
sha256 = "1wy9wfvyradp0aigfv8yijvj0dgb5kpq2yf2xki15f605jc1r5dm";
fetchSubmodules = true;
};
buildInputs = [ libpng pkgconfig ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkgconfig is a nativeBuildInput.

{ stdenv, libpng, fetchgit, pkgconfig }:
stdenv.mkDerivation {
name = "guetzli-1.0.1";
src = fetchgit {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use fetchFromGitHub like so, if it is possible to get rid of fetchSubmodules = true:
src = fetchFromGitHub { owner = "google"; repo = "guetzli"; rev = "v${version}" sha256 = "…"; }

To be able to do that, you have to declare version separately and make the attribute set recursive.

@seppeljordan
Copy link
Contributor Author

@pSub done

@pSub pSub merged commit b300472 into NixOS:master Jul 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: package (new) This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants