summaryrefslogtreecommitdiff
path: root/overlays/weboob/default.nix
blob: d0a15a7d1ad7a578b78784e56387c627a8922601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
self: super: {
  weboob = (self.pythonPackages.weboob.overridePythonAttrs {
    setupPyBuildFlags = [ "--no-qt" "--xdg" ];
  }).overrideAttrs (old: rec {
    version = "1.5";
    src = self.fetchurl {
      url = "https://git.weboob.org/weboob/weboob/-/archive/${version}/${old.pname}-${version}.tar.gz";
      sha256 = "0l6q5nm5g0zn6gmf809059kddrbds27wgygxsfkqja9blks5vq7z";
    };
    postInstall = ''${old.postInstall or ""}
      mkdir -p $out/share/bash-completion/completions/
      cp tools/weboob_bash_completion $out/share/bash-completion/completions/weboob
    '';
  });
}