Merge pull request #77009 from davidak/anarchism

anarchism: init at 15.3-1
This commit is contained in:
Timo Kaufmann 2020-08-20 11:20:16 +02:00 committed by GitHub
commit 5cc57fe31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ stdenv, fetchFromGitLab, xdg_utils }:
stdenv.mkDerivation rec {
pname = "anarchism";
version = "15.3-1";
src = fetchFromGitLab {
domain = "salsa.debian.org";
owner = "debian";
repo = pname;
rev = "debian%2F${version}"; # %2F = urlquote("/")
sha256 = "04ylk0y5b3jml2awmyz7m1hnymni8y1n83m0k6ychdh0px8frhm5";
};
phases = [ "unpackPhase" "postPatch" "installPhase" ];
postPatch = ''
substituteInPlace debian/anarchism.desktop \
--replace "/usr/bin/xdg-open" "${xdg_utils}/bin/xdg-open"
substituteInPlace debian/anarchism.desktop \
--replace "file:///usr" "file://$out"
'';
installPhase = ''
mkdir -p $out/share/doc/anarchism $out/share/applications $out/share/icons/hicolor/scalable/apps
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 stdenv.lib; {
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;
};
}

View File

@ -18327,6 +18327,8 @@ in
amiri = callPackage ../data/fonts/amiri { };
anarchism = callPackage ../data/documentation/anarchism { };
andagii = callPackage ../data/fonts/andagii { };
andika = callPackage ../data/fonts/andika { };