make overlay work without flakes

This commit is contained in:
Simon Bruder 2021-07-22 11:14:28 +02:00
parent e42324eaa7
commit 76b81d31bb
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 48 additions and 46 deletions

47
default.nix Normal file
View file

@ -0,0 +1,47 @@
final: prev:
let
inherit (prev) callPackage;
callPythonPackage = prev.python3Packages.callPackage;
in
{
python3 = prev.python3.override {
packageOverrides = final: prev:
{
deezer-py = callPythonPackage ./python-modules/deezer-py { };
enlighten = callPythonPackage ./python-modules/enlighten { };
prefixed = callPythonPackage ./python-modules/prefixed { };
};
};
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
cyanrip = callPackage ./cyanrip { };
deemix = callPythonPackage ./deemix { };
fSpy = callPackage ./fSpy { };
face_morpher = callPythonPackage ./face_morpher { };
mpvScripts = prev.mpvScripts // {
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
};
nsz = callPythonPackage ./nsz { };
oha = callPackage ./oha { };
snownews = callPackage ./snownews { };
textidote = callPackage ./textidote { };
unxwb = callPackage ./unxwb { };
vgmstream = callPackage ./vgmstream { };
VisiCut = callPackage ./VisiCut { };
x264-unstable = prev.x264.overrideAttrs (callPackage ./x264-unstable { });
}

View file

@ -10,52 +10,7 @@
}; };
outputs = { self, flake-utils, nixpkgs, nix-pre-commit-hooks }: { outputs = { self, flake-utils, nixpkgs, nix-pre-commit-hooks }: {
overlay = final: prev: overlay = import ./default.nix;
let
inherit (prev) callPackage;
callPythonPackage = prev.python3Packages.callPackage;
in
{
python3 = prev.python3.override {
packageOverrides = final: prev:
{
deezer-py = callPythonPackage ./python-modules/deezer-py { };
enlighten = callPythonPackage ./python-modules/enlighten { };
prefixed = callPythonPackage ./python-modules/prefixed { };
};
};
python3Packages = prev.recurseIntoAttrs final.python3.pkgs;
cyanrip = callPackage ./cyanrip { };
deemix = callPythonPackage ./deemix { };
fSpy = callPackage ./fSpy { };
face_morpher = callPythonPackage ./face_morpher { };
mpvScripts = prev.mpvScripts // {
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
};
nsz = callPythonPackage ./nsz { };
oha = callPackage ./oha { };
snownews = callPackage ./snownews { };
textidote = callPackage ./textidote { };
unxwb = callPackage ./unxwb { };
vgmstream = callPackage ./vgmstream { };
VisiCut = callPackage ./VisiCut { };
x264-unstable = prev.x264.overrideAttrs (callPackage ./x264-unstable { });
};
} // flake-utils.lib.eachDefaultSystem (system: } // flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; }; pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };