Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
591 B · 35 lines
Nix
123456789101112131415161718192021222324252627282930313233343536{ interpreter, writeText, runCommand,}:
let
python = let packageOverrides = self: super: { typeddep = self.callPackage ./typeddep { }; }; in interpreter.override { inherit packageOverrides; self = python; };
pythonEnv = python.withPackages (ps: [ ps.typeddep ps.mypy ]);
pythonScript = writeText "myscript.py" '' from typeddep import util s: str = util.echo("hello") print(s) '';
inrunCommand "${interpreter.name}-site-prefix-mypy-test" { } '' ${pythonEnv}/bin/mypy ${pythonScript} touch $out''