mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2025-03-21 13:02:02 +00:00
rewrite import
This commit is contained in:
parent
402ca26c0d
commit
7c8ede8425
1 changed files with 11 additions and 9 deletions
20
default.nix
20
default.nix
|
@ -1,14 +1,16 @@
|
|||
let
|
||||
hostPkgs = import <nixpkgs> {};
|
||||
pkgs = hostPkgs.fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
|
||||
};
|
||||
pkgs = let
|
||||
hostPkgs = import <nixpkgs> {};
|
||||
pinnedPkgs = hostPkgs.fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "nixpkgs";
|
||||
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
|
||||
};
|
||||
in import pinnedPkgs {};
|
||||
in
|
||||
|
||||
self: super: rec {
|
||||
python39 = pkgs.python39.override {
|
||||
python39 = super.python39.override {
|
||||
packageOverrides = python-self: python-super: {
|
||||
strawberry_graphql = python-super.buildPythonPackage rec {
|
||||
pname = "strawberry-graphql";
|
||||
|
@ -38,11 +40,11 @@ self: super: rec {
|
|||
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
|
||||
pkgs = pkgs;
|
||||
pythonPkgs = pythonPackages;
|
||||
lib = hostPkgs.lib;
|
||||
lib = pkgs.lib;
|
||||
};
|
||||
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
|
||||
pkgs = pkgs;
|
||||
pythonPkgs = pythonPackages;
|
||||
lib = hostPkgs.lib;
|
||||
lib = pkgs.lib;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue