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

skanlite: init at 2.0.1 #29060

Merged
merged 3 commits into from Sep 17, 2017
Merged

skanlite: init at 2.0.1 #29060

merged 3 commits into from Sep 17, 2017

Conversation

polendri
Copy link
Contributor

@polendri polendri commented Sep 6, 2017

Motivation for this change

Adding skanlite, a popular KDE application

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 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/)
  • Fits CONTRIBUTING.md.
Things remaining

I'm travelling right now and I don't have a scanner available, which means I can't really test the application apart from confirming that it launches. Could someone with a scanner check this out and try it?

@mention-bot
Copy link

@pshendry, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ttuegel, @vandenoever and @peterhoeg to be potential reviewers.


enableParallelBuilding = true;

meta = with stdenv.lib; {
Copy link
Member

Choose a reason for hiding this comment

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

license = licenses.gpl2;

@peterhoeg
Copy link
Member

Please split the commit into one commit per logical change (sane upgrade, libksane and skanlite).

@polendri
Copy link
Contributor Author

polendri commented Sep 7, 2017

@vyp License added; I had used ktorrent as a template, which was missing a meta.license, so I've added a commit which adds a license definition to ktorrent as well.

@peterhoeg Commits are split up

@vyp
Copy link
Member

vyp commented Sep 7, 2017

@pshendry great, thanks for that. 🎉

src = fetchurl {
sha256 = "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4";
sha256 = "1j9nbqspaj0rlgalafb5z6r606k0i22kz0rcpd744p176yzlfdr9";
Copy link
Contributor

Choose a reason for hiding this comment

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

When I tried it on my system, I actually had to revert the hash back to its previous version.

So oddly the following combination worked for me:

version = "1.0.27";
   src = fetchurl {
   sha256 = "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4";

@silverhook
Copy link
Contributor

I tried it on 17.09 and it builds and scans fine. Thank you :)

The only issue I had was that I had to revert the sha265 for the sane-backends 1.0.27 for it to install.

@polendri
Copy link
Contributor Author

polendri commented Sep 9, 2017

@silverhook Odd, do you get different files if you manually download the tarballs from the 1.0.25 and 1.0.27 URLs?

@silverhook
Copy link
Contributor

@pshendry, I didn’t try. TBH, I’m fairly new to actually running NixOS (even though I’ve been following it for ages), so it very much might be that I messed something up.

I also uninstalled the packages from your repo in the mean time. But does Skanlite actually depend on the new verison of sane-backends, or was that just a completely separate change?

@polendri
Copy link
Contributor Author

polendri commented Sep 9, 2017

@silverhook I'm new to packaging, so I may be misunderstanding something as well. There's no hard requirement on libsane 1.0.27, that was just a drive-by upgrade while I was doing this, so if it comes down to it we can drop that commit.

@polendri
Copy link
Contributor Author

I've tried rebuilding this from scratch and it works fine for me, I'm not getting the issue @silverhook described. I'm back home with my scanner and the built binary works great (with a hardware.sane = { enable = true; extraBackends = with pkgs; [ hplip ]; }; in my config).

As far as I can tell it's ready to merge.

@peterhoeg peterhoeg merged commit 43d0317 into NixOS:master Sep 17, 2017
@peterhoeg
Copy link
Member

Thank you for the contribution @pshendry!

@silverhook
Copy link
Contributor

Awesome! \o/

I don’t see it in the 17.09 channel though.

@zraexy
Copy link
Member

zraexy commented Sep 18, 2017

@silverhook It probably won't be in 17.09. Generally only bugfixes and important updates are backported after a release is branched off.

@vyp
Copy link
Member

vyp commented Sep 18, 2017

17.09 is not released yet though is it?

@zraexy
Copy link
Member

zraexy commented Sep 18, 2017

@vyp It is not released but it was branched off on August 30th. The point of branching off before release is to fix issues; making any unnecessary changes could create more. (Not that this would)

@silverhook
Copy link
Contributor

Makes sense, I guess.

@vyp
Copy link
Member

vyp commented Sep 18, 2017

@zraexy Thanks for clarifying!

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

Successfully merging this pull request may close these issues.

None yet

6 participants