@@ -1009,11 +1009,11 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul
10091009 nixpkgs.config.packageOverrides = super: {
10101010 python = super.python.override {
10111011 packageOverrides = python-self: python-super: {
1012− bepasty-server = python-super.bepasty-server.overrideAttrs (oldAttrs: {
1012+ zerobin = python-super.zerobin.overrideAttrs (oldAttrs: {
10131013 src = super.fetchgit {
1014− url = "https://github.com/bepasty/bepasty-server";
1015− rev = "e2516e8cf4f2afb5185337073607eb9e84a61d2d";
1016− sha256 = "9ziqshmsf0rjvdhhca55sm0x8jz76fsf2q4rwh4m6lpcf8wr0nps";
1014+ url = "https://github.com/sametmax/0bin";
1015+ rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec";
1016+ sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji";
10171017 };
10181018 });
10191019 };
@@ -1021,7 +1021,8 @@ If you need to change a package's attribute(s) from `configuration.nix` you coul
10211021 };
10221022```
10231023
1024−If you are using the `bepasty-server` package somewhere, for example in `systemPackages` or indirectly from `services.bepasty`, then a `nixos-rebuild switch` will rebuild the system but with the `bepasty-server` package using a different `src` attribute. This way one can modify `python` based software/libraries easily.
1024+`pythonPackages.zerobin` is now globally overriden. All packages and also the
1025+`zerobin` NixOS service use the new definition.
10251026Note that `python-super` refers to the old package set and `python-self`
10261027to the new, overridden version.
10271028
@@ -1030,7 +1031,7 @@ To modify only a Python package set instead of a whole Python derivation, use th
10301031```nix
10311032 myPythonPackages = pythonPackages.override {
10321033 overrides = self: super: {
1033− bepasty-server = ...;
1034+ zerobin = ...;
10341035 };
10351036 }
10361037```
@@ -1044,11 +1045,11 @@ self: super:
10441045{
10451046 python = super.python.override {
10461047 packageOverrides = python-self: python-super: {
1047− bepasty-server = python-super.bepasty-server.overrideAttrs (oldAttrs: {
1048− src = self.pkgs.fetchgit {
1049− url = "https://github.com/bepasty/bepasty-server";
1050− rev = "e2516e8cf4f2afb5185337073607eb9e84a61d2d";
1051− sha256 = "9ziqshmsf0rjvdhhca55sm0x8jz76fsf2q4rwh4m6lpcf8wr0nps";
1048+ zerobin = python-super.zerobin.overrideAttrs (oldAttrs: {
1049+ src = super.fetchgit {
1050+ url = "https://github.com/sametmax/0bin";
1051+ rev = "a344dbb18fe7a855d0742b9a1cede7ce423b34ec";
1052+ sha256 = "16d769kmnrpbdr0ph0whyf4yff5df6zi4kmwx7sz1d3r6c8p6xji";
10521053 };
10531054 });
10541055 };