<commit_before>{ stdenv, fetchFromGitHub, deepin-wallpapers, deepin }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "deepin-desktop-base";
  version = "2018.7.23";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "1n1bjkvhgq138jcg3zkwg55r41056x91mh191mirlpvpic574ydc";
  };

  buildInputs = [ deepin-wallpapers ];

  postPatch = ''
    sed -i Makefile -e "s:/usr:$out:" -e "s:/etc:$out/etc:"
  '';

  postInstall = ''<commit_msg>deepin.deepin-desktop-base: 2018.7.23 -> 2018.10.29<commit_after>{ stdenv, fetchFromGitHub, deepin-wallpapers, deepin }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "deepin-desktop-base";
  version = "2018.10.29";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "0l2zb7rpag2q36lqsgvirhjgmj7w243nsi1rywkypf2xm7g2v235";
  };

  buildInputs = [ deepin-wallpapers ];

  postPatch = ''
    sed -i Makefile -e "s:/usr:$out:" -e "s:/etc:$out/etc:"
  '';

  postInstall = ''
{'fraction_non_alphanumeric': 0.16682464454976303, 'fraction_numerical': 0.07014218009478673, 'mean_word_length': 3.5517241379310347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3133883', 'n_tokens_mistral': 498, 'n_tokens_neox': 428, 'n_words': 70}