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
xvfb-run: clean up and update package #74499
Conversation
Hmm, I'm not sure why this is in my memory, but I thought that |
It looks like the first release is in Debian was in 2006 (commit). Arch Linux included the same version in 2009 via c9f8fec3 (related issue) from Debian. The current version in Arch Linux comes from The T2 SDE Project which is also the current source for this package. Functionally should be still equivalent, but the Debian version uses a more reliable cleanup function and has an improved startup speed. I just noticed that the Debian version uses a different license (MIT) which needs to be changed. |
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.
Looks good.
Only the description could be improved i think.
See what others are using: https://repology.org/project/xvfb-run/information
Thanks for your contribution!
inherit (src.meta) homepage; | ||
license = licenses.gpl2; | ||
description = "A wrapper for the Xvfb command which simplifies the task of running commands"; | ||
homepage = src.meta.homepage + "debian/local"; |
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.
It's good to be able to just read the URL there...
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.
I saw the usage of inherit (src.meta) homepage;
in some packages lately and I liked the style.
In this case, the homepage line gets noticeably shorter, from 107 (when using the full path to debian/local
) to 74 characters.
homepage = "https://salsa.debian.org/xorg-team/xserver/xorg-server/tree/debian-unstable/debian/local";
vs
homepage = src.meta.homepage + "/tree/debian-unstable/debian/local";
(current version is incomplete, will be fixed)
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.
Yeah. Personally, I am not a fan of src.meta.homepage
either. I frequently click on meta.homepage
URL when reviewing PRs and this prevents this use case without evaluation the expression.
Good point, I updated the meta values to match the information found on repology. I also updated the source revision to use the Debian release tag. This gives the version number a better meaning and makes it more relatable to the used commit. |
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "A wrapper for the Xvfb command which simplifies the task of running commands"; | ||
homepage = src.meta.homepage + "debian/local"; | ||
license = licenses.mit; |
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.
Where did you find this? Are you sure that is not just a license of Xorg? The manpage contains gpl2Plus
.
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.
Since the repository is a fork of the Xorg tree and the script itself has no license notice, it is distributed under the Xorg license, right?
The Xorg license is a slight variant of the common MIT license form
.
The xorg.xorgserver
package currently has no license (see https://nixos.org/nixos/packages.html?attr=xorg.xorgserver&channel=nixos-19.09) but the xwayland
package build from the same source is declared a licenses.mit
(see https://nixos.org/nixos/packages.html?attr=xwayland&channel=nixos-19.09), so I thought licenses.mit
would be correct.
I didn't notice the GPL license in the manpage.
Which license is the correct one now?
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.
Since the script itself has no license information, the general license for the repo applies.
https://salsa.debian.org/xorg-team/xserver/xorg-server/blob/debian-unstable/COPYING
But the manpage is GPL ;)
Which seems messed up and unintended... maybe open an issue upstream to clearify.
Hmm, the T2 version seems to have introduced an It would be nice if we managaed to upstream the script into xorg itself. |
Thank you for your contributions.
|
can we get this merged? |
I marked this as stale due to inactivity. → More info |
Motivation for this change
#72906
Things done
In addition to updating the package I also renamed it from
xvfb_run
toxvfb-run
and added a backwards compatible alias, asxvfb_run
is not an intuitive package name to install when trying to run thexvfb-run
script.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
nix-review result
./result/bin/
)nix path-info -S
before and after) (210.2M -> 210.1M
)Notify maintainers
cc @davidak