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
added 'An Anarchist FAQ' (AFAQ) package. #33141
Conversation
@@ -1216,7 +1216,7 @@ with pkgs; | |||
mpdris2 = callPackage ../tools/audio/mpdris2 { }; | |||
|
|||
nfdump = callPackage ../tools/networking/nfdump { }; | |||
|
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.
Unneeded whitespace damage?
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.
Heh :-) Seriously, though, should we package political books in Nixpkgs? I'd rather not do that.
mkdir -p $out/share/applications/ | ||
cp -r html $out/share/doc/anarchism/ | ||
cp -r markdown $out/share/doc/anarchism/ | ||
echo \[Desktop Entry\] > $out/share/applications/anarchism.desktop |
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.
Use makeDesktopItem
. Here are examples: https://github.com/NixOS/nixpkgs/search?utf8=%E2%9C%93&q=makeDesktopItem&type=
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.
Did it, had to change the name tho as that fails with spaces, don't like it. :(
}; | ||
|
||
installPhase = '' | ||
mkdir -p $out/share/doc/anarchism/html |
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.
Is this really documentation, though?
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.
yes
mkdir $out/share/doc/anarchism/markdown | ||
mkdir -p $out/share/applications/ | ||
cp -r html $out/share/doc/anarchism/ | ||
cp -r markdown $out/share/doc/anarchism/ |
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.
Better just mv
, that would make it clearer:
mkdir -p $out/share/doc/anarchism
mv html markdown $out/share/doc/anarchism
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.
done.
name = "anarchism-${version}"; | ||
version = "15.0"; | ||
src = fetchurl { | ||
url = https://0xacab.org/ju/afaq/repository/master/archive.tar.gz; |
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.
This will break very soon. You should provide a link to a stable archive, i.e. one that will never change. Or use fetchgit
.
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.
done!
{ stdenv, fetchurl }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "anarchism-${version}"; |
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.
anarchism
is not a proper name for this work. It could be afaq
, for example.
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 has been for many years in debian world, on archlinux and whatnot. It's a well known package and often refered to by it's pkg name and I'd like to keep it that way.
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.
Context: https://lists.debian.org/debian-devel/1999/03/msg01628.html
Including this package in Debian has been a mistake that I would not like to see repeated here. Software distributions are not a proper place for political debate: accepting this package would set a precedent to accept other similar packages, including those that manifest political viewpoints from the opposite side of the spectrum.
Sorry, I don't think this is a good idea. |
politics, social organization, and economics. | ||
''; | ||
homepage = http://www.anarchistfaq.org; | ||
license = stdenv.lib.licenses.gpl2; |
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 actually under GNU FDL, see: https://en.wikipedia.org/wiki/An_Anarchist_FAQ
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.
Both can be applied: "Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation, and/or the terms of the GNU General Public License, Version 2.0 or any later version published by the Free Software Foundation." http://www.anarchism.pageabode.com/afaq/intro.html
@yegortimoshenko Closing this PR and limiting the conversion to collaborators without any discussion only based on your opinion is ridiculous. You're not not speaking for the whole project and please do not try to do so. |
As I somehow cannot unlock this PR: @oida please open a new PR if you still intend to include the package. |
Interestingly, I was able to unlock it. I'm not sure if this package fits into scope of nixpkgs, though. We don't package offline builds of wikipedia either. |
IMO packaging political books serves little purpose except as "publicity" for the programme (books tend to be easy to "just download"). I'd prefer to avoid spending energy on politics around nixos.org, as I can't see any sufficient relation. |
I don't think so. I've closed this because I feel confident about my decision and I don't believe this to be worth time of other members. Nod from @grahamc seems to be enough. Limiting conversation to collaborators is exactly that, i.e. you can still respond. I've locked it because I don't want this to turn into a political debate (there are no practical questions left unasked), and I ask you to lock it again. Any political books (and discussions) are divisive by their nature, as in, they tend to impose enemies on readers and divide the world into "us" and "them". I think everyone would agree, no matter what their particular political views are, that software distribution is not a proper place for that, and if anything, it would result in a less welcoming and more divisive community for everyone involved. Also, I'm not convinced that packaging any book is practical at all. Tarballs are a better way to store data than in Nixpkgs, because tarballs don't have a build program attached to them, they are purely declarative. |
Also, nowhere have I implied that I speak for the whole project. Not sure what makes you think that. |
Using Nix to package/distribute books and non-technical documents could be interesting. If someone wants to experiment with it, they should do it in a separate repository of "Nixbooks" (possibly as a Nixpkgs overlay), and if it proves itself as useful, it could be merged into Nixpkgs. I think @oida should do that if they want to continue with this derivation. The fact that this is a political work is a distraction; even if it wasn't political, it wouldn't make sense to merge, because it's not clear that it makes sense to distribute books through Nix at all. And if it turns out to make sense to distribute books through Nix, then the political content of the books would be irrelevant. |
That would only be true if genuinely no particular criteria were applied to accepting books other than willingness of someone to maintain them. It seems highly improbable to me that that would actually be the case, while distributed systems like Web or IPFS solve this problem by not relying on any single authority for making data publicly accessible. Distributed systems also work around censorship issue, where some books are acceptable in some jurisdictions but are banned in others. In other words, hypothetical Nixbooks would never work for political material. Software for the most part doesn't pose ethical/moral issues in itself and is only concerned about practicality. Games, movies and fiction all also have a practical purpose, that of enjoyment. Political material is inherently different because it incentivizes action in the real world, and divides people into friends and enemies, the latter being more pronounced in radical books like one in this pull request. Also please note that maintaining something in software distribution has a lot of overhead, because, unlike in Web or IPFS, accepting something requires some top-down effort and that doesn't scale well. Coping with this overhead only makes sense when it has practical advantages. |
Motivation for this change
Anarchy!
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)