From 8b1d08f3aa92e21327443305e8b9dc8d51116035 Mon Sep 17 00:00:00 2001 From: inexcode Date: Fri, 12 Aug 2022 18:43:06 +0400 Subject: [PATCH] import fetchers? --- default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index 89904a2..61fae34 100644 --- a/default.nix +++ b/default.nix @@ -1,3 +1,4 @@ +{ lib, fetchFromGitHub, fetchpatch }: let pkgs = import { }; in @@ -26,7 +27,7 @@ self: super: rec { pname = "starlette"; version = "0.19.0"; format = "setuptools"; - src = python-super.fetchFromGitHub { + src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; @@ -69,7 +70,7 @@ self: super: rec { pname = "fastapi"; version = "0.75.2"; format = "flit"; - src = python-super.fetchFromGitHub { + src = fetchFromGitHub { owner = "tiangolo"; repo = pname; rev = version; @@ -97,7 +98,7 @@ self: super: rec { patches = [ # Bump starlette, https://github.com/tiangolo/fastapi/pull/4483 - (python-super.fetchpatch { + (fetchpatch { name = "support-later-starlette.patch"; # PR contains multiple commits url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch";