Skip to content
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

Add qcomicbook. #44074

Merged
merged 1 commit into from Sep 1, 2018
Merged

Add qcomicbook. #44074

merged 1 commit into from Sep 1, 2018

Conversation

greydot
Copy link
Contributor

@greydot greydot commented Jul 25, 2018

Motivation for this change

Having this program in NixOS.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@samueldr
Copy link
Member

@GrahamcOfBorg build qcomicbook


Hi! first PR there :) grats!

@GrahamcOfBorg is our CI pipeline, builds can be queued and thus tested this way (you need permission first for builds). You will soon see the results on each platforms for the build.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1
shrinking /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1/share/man/
strip is /nix/store/a3nk8z2i7m7wa3jdckgv710n7j3yx4b5-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1
checking for references to /build in /nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/1r8gx478p2lda7sdzdfn562j1mdy53f6-qcomicbook-0.9.1

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: qcomicbook

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1
shrinking /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1/share/man/
strip is /nix/store/a245zacjzf3qw0davhvlfarihcy2yyrc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1
checking for references to /build in /nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/rkcp9xdsmzpfpwkznhzwrfq0c271dd0b-qcomicbook-0.9.1

with stdenv.lib;

let
version = "0.9.1";
Copy link
Member

Choose a reason for hiding this comment

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

It's best practice to define the version like this:

stdenv.mkDerivation rec {
  name = "qcomicbook-${version}";  
  version = "0.9.1";
  ...
}

description = "Comic book reader in Qt5";
license = licenses.gpl2;

longDescription = ''QComicBook is a viewer for PDF files and comic book archives containing
Copy link
Member

Choose a reason for hiding this comment

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

Nit: The preferred formatting is:

longDescription = ''
  QComicBook  is a viewer...
'';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@erikarvstedt
Copy link
Member

I've added a few minor changes that you might want to copy and then it looks about perfect:
https://gist.github.com/erikarvstedt/d3da4c404278b9f50e0485e891bf5e46

Welcome to nixpkgs 👍 😉

@greydot
Copy link
Contributor Author

greydot commented Jul 26, 2018

Neat! I didn't know about fetchFromGithub. Thanks!

@matthewbauer
Copy link
Member

@GrahamcOfBorg build qcomicbook

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: qcomicbook

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1
shrinking /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1
checking for references to /build in /nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/y92zcyda9zfacmvqnpwn3as6yy0q8vqv-qcomicbook-0.9.1

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1
shrinking /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1/share/man/
strip is /nix/store/zrs21zqcchgyabjf4xfimncdq16njizc-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1
checking for references to /build in /nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/gmx74ryhwcxscpc9g02dymad946gzv9w-qcomicbook-0.9.1

Copy link
Contributor

@xeji xeji left a comment

Choose a reason for hiding this comment

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

Please modify according to nixpkgs conventions for qt applications.

@greydot
Copy link
Contributor Author

greydot commented Sep 1, 2018

@xeji done. Sorry that it took this long.

@xeji
Copy link
Contributor

xeji commented Sep 1, 2018

Thank you!
@GrahamcOfBorg build qcomicbook

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1
shrinking /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1/share/man/
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1
checking for references to /build in /nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/gi1x1najf3ahfx37ym35550zfxf7c96q-qcomicbook-0.9.1

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qcomicbook

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1
shrinking /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1/bin/qcomicbook
gzipping man pages under /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1/share/man/
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1/bin
patching script interpreter paths in /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1
checking for references to /build in /nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1...
postPatchMkspecs
postPatchMkspecs
/nix/store/vkk22ppknnzcr6sn9cq9yidk0wq9l38h-qcomicbook-0.9.1

@xeji xeji merged commit 028b64a into NixOS:master Sep 1, 2018
@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: qcomicbook

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants