Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 942 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gettext, 6 itstool, 7 libxml2, 8 yelp, 9 mateUpdateScript, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "mate-user-guide"; 14 version = "1.28.0"; 15 16 src = fetchurl { 17 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 18 sha256 = "U+8IFPUGVEYU7WGre+UiHMjTqfFPfvlpjJD+fkYBS54="; 19 }; 20 21 nativeBuildInputs = [ 22 itstool 23 gettext 24 libxml2 25 ]; 26 27 buildInputs = [ 28 yelp 29 ]; 30 31 postPatch = '' 32 substituteInPlace mate-user-guide.desktop.in.in \ 33 --replace-fail "Exec=yelp" "Exec=${yelp}/bin/yelp" 34 ''; 35 36 enableParallelBuilding = true; 37 38 passthru.updateScript = mateUpdateScript { inherit pname; }; 39 40 meta = with lib; { 41 description = "MATE User Guide"; 42 homepage = "https://mate-desktop.org"; 43 license = with licenses; [ 44 gpl2Plus 45 fdl11Plus 46 ]; 47 platforms = platforms.unix; 48 teams = [ teams.mate ]; 49 }; 50}