nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 43 lines 1.5 kB view raw
1{ lib, stdenv, fetchFromGitLab, xdg-utils }: 2 3stdenv.mkDerivation rec { 4 pname = "anarchism"; 5 version = "15.3-1"; 6 7 src = fetchFromGitLab { 8 domain = "salsa.debian.org"; 9 owner = "debian"; 10 repo = pname; 11 rev = "debian/${version}"; 12 sha256 = "04ylk0y5b3jml2awmyz7m1hnymni8y1n83m0k6ychdh0px8frhm5"; 13 }; 14 15 postPatch = '' 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" 20 ''; 21 22 installPhase = '' 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 27 ''; 28 29 meta = with lib; { 30 homepage = "http://www.anarchistfaq.org/"; 31 changelog = "http://anarchism.pageabode.com/afaq/new.html"; 32 description = "Exhaustive exploration of Anarchist theory and practice"; 33 longDescription = '' 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. 38 ''; 39 license = licenses.gpl2Plus; 40 maintainers = with maintainers; [ davidak ]; 41 platforms = with platforms; all; 42 }; 43}