diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 13:52:30 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-04-26 13:57:04 +0200 |
commit | 676e68e3394eeb07a02745d1cf191db9fee9e610 (patch) | |
tree | 973c57072eb9b784adab83fab8748d05a7ffc9c3 /overlays/weboob | |
parent | 98de2045a749b25d031b174c940096b4f5406b9d (diff) | |
download | Nix-676e68e3394eeb07a02745d1cf191db9fee9e610.tar.gz Nix-676e68e3394eeb07a02745d1cf191db9fee9e610.tar.zst Nix-676e68e3394eeb07a02745d1cf191db9fee9e610.zip |
Use overlays for package overrides
Diffstat (limited to 'overlays/weboob')
-rw-r--r-- | overlays/weboob/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/overlays/weboob/default.nix b/overlays/weboob/default.nix new file mode 100644 index 0000000..d0a15a7 --- /dev/null +++ b/overlays/weboob/default.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | self: super: { | ||
2 | weboob = (self.pythonPackages.weboob.overridePythonAttrs { | ||
3 | setupPyBuildFlags = [ "--no-qt" "--xdg" ]; | ||
4 | }).overrideAttrs (old: rec { | ||
5 | version = "1.5"; | ||
6 | src = self.fetchurl { | ||
7 | url = "https://git.weboob.org/weboob/weboob/-/archive/${version}/${old.pname}-${version}.tar.gz"; | ||
8 | sha256 = "0l6q5nm5g0zn6gmf809059kddrbds27wgygxsfkqja9blks5vq7z"; | ||
9 | }; | ||
10 | postInstall = ''${old.postInstall or ""} | ||
11 | mkdir -p $out/share/bash-completion/completions/ | ||
12 | cp tools/weboob_bash_completion $out/share/bash-completion/completions/weboob | ||
13 | ''; | ||
14 | }); | ||
15 | } | ||