unpin nixpkgs

This commit is contained in:
Inex Code 2022-08-12 21:27:14 +04:00
parent 47384698a0
commit f991c626f8

View file

@ -1,14 +1,5 @@
let
pkgs = let
hostPkgs = import <nixpkgs> {};
pinnedPkgs = hostPkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
hash = "sha256:0q84mvh4liacqv8fdxpkm28233mfm5x1s36wwxhwdq01jivk58xn";
};
in import pinnedPkgs {};
hostPkgs = import <nixpkgs> {};
pkgs = import <nixpkgs> { };
in
self: super: rec {
@ -21,7 +12,7 @@ self: super: rec {
patches = [
./strawberry-graphql.patch
];
propagatedBuildInputs = with pkgs.python39Packages; [
propagatedBuildInputs = with self.python39Packages; [
typing-extensions
graphql-core
python-multipart
@ -40,12 +31,12 @@ self: super: rec {
};
pythonPackages = python39.pkgs;
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
pkgs = hostPkgs;
pkgs = pkgs;
pythonPkgs = pythonPackages;
lib = pkgs.lib;
};
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
pkgs = hostPkgs;
pkgs = pkgs;
pythonPkgs = pythonPackages;
lib = pkgs.lib;
};