3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/documentation/anarchism/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.5 KiB
Nix
Raw Normal View History

2021-02-01 08:05:09 +00:00
{ lib, stdenv, fetchFromGitLab, xdg-utils }:
2020-01-06 04:52:37 +00:00
stdenv.mkDerivation rec {
pname = "anarchism";
version = "15.3-1";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = pname;
2020-11-17 16:21:48 +00:00
rev = "debian/${version}";
2020-01-06 04:52:37 +00:00
sha256 = "04ylk0y5b3jml2awmyz7m1hnymni8y1n83m0k6ychdh0px8frhm5";
};
postPatch = ''
substituteInPlace debian/anarchism.desktop \
2021-02-01 08:05:09 +00:00
--replace "/usr/bin/xdg-open" "${xdg-utils}/bin/xdg-open"
2020-01-06 04:52:37 +00:00
substituteInPlace debian/anarchism.desktop \
--replace "file:///usr" "file://$out"
'';
installPhase = ''
2020-11-17 16:21:48 +00:00
mkdir -p $out/share/doc/anarchism $out/share/applications $out/share/icons/hicolor/scalable/apps
2020-01-06 04:52:37 +00:00
cp -r {html,markdown} $out/share/doc/anarchism
cp debian/anarchism.svg $out/share/icons/hicolor/scalable/apps
cp debian/anarchism.desktop $out/share/applications
'';
meta = with lib; {
2020-01-06 04:52:37 +00:00
homepage = "http://www.anarchistfaq.org/";
changelog = "http://anarchism.pageabode.com/afaq/new.html";
description = "Exhaustive exploration of Anarchist theory and practice";
longDescription = ''
The Anarchist FAQ is an excellent source of information regarding Anarchist
(libertarian socialist) theory and practice. It covers all major topics,
from the basics of Anarchism to very specific discussions of politics,
social organization, and economics.
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ davidak ];
platforms = with platforms; all;
};
}