diff options
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/default.nix b/default.nix index 1e3c79e..4f10756 100644 --- a/default.nix +++ b/default.nix @@ -1,37 +1,27 @@ -with import <nixpkgs> {}; +with import <nixpkgs> { }; let # werkzeug workaround related to: # https://github.com/NixOS/nixpkgs/issues/72345#issuecomment-812970457 - my-python-packages = (pypkgs: let - werkzeug' = pypkgs.werkzeug.overrideAttrs (old: { - postPatch = '' - substituteInPlace src/werkzeug/_reloader.py \ - --replace "rv = [sys.executable]" "return sys.argv" - ''; - doCheck = false; - }); + my-python-packages = (pypkgs: + let + werkzeug' = pypkgs.werkzeug.overrideAttrs (old: { + postPatch = '' + substituteInPlace src/werkzeug/_reloader.py \ + --replace "rv = [sys.executable]" "return sys.argv" + ''; + doCheck = false; + }); - flask' = pypkgs.flask.override { werkzeug = werkzeug'; }; + flask' = pypkgs.flask.override { werkzeug = werkzeug'; }; - in with pypkgs; [ - werkzeug' - flask' - pytest - docopt - coverage - black - ]); + in with pypkgs; [ werkzeug' flask' pytest docopt coverage black ]); python' = python3.withPackages my-python-packages; -in - stdenv.mkDerivation { - name = "trseubgti"; - buildInputs = [ - python' - ag - ]; - } +in stdenv.mkDerivation { + name = "trseubgti"; + buildInputs = [ python' ag nixfmt ]; +} |
