1 { lib, stdenv, fetchFromGitLab, xdg-utils }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitLab {
8 domain = "salsa.debian.org";
11 rev = "debian/${version}";
12 sha256 = "04ylk0y5b3jml2awmyz7m1hnymni8y1n83m0k6ychdh0px8frhm5";
16 substituteInPlace debian/anarchism.desktop \
17 --replace "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
18 substituteInPlace debian/anarchism.desktop \
19 --replace "file:///usr" "file://$out"
23 mkdir -p $out/share/doc/anarchism $out/share/applications $out/share/icons/hicolor/scalable/apps
24 cp -r {html,markdown} $out/share/doc/anarchism
25 cp debian/anarchism.svg $out/share/icons/hicolor/scalable/apps
26 cp debian/anarchism.desktop $out/share/applications
30 homepage = "http://www.anarchistfaq.org/";
31 changelog = "http://anarchism.pageabode.com/afaq/new.html";
32 description = "Exhaustive exploration of Anarchist theory and practice";
34 The Anarchist FAQ is an excellent source of information regarding Anarchist
35 (libertarian socialist) theory and practice. It covers all major topics,
36 from the basics of Anarchism to very specific discussions of politics,
37 social organization, and economics.
39 license = licenses.gpl2Plus;
40 maintainers = with maintainers; [ davidak ];
41 platforms = with platforms; all;