forked from colonelpanic/dotfiles
[NixOS] Move my-python-packages to overlay
This commit is contained in:
parent
c0c51f571d
commit
29e68d1714
@ -1,19 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
my-python-packages = python-packages: with python-packages; [
|
|
||||||
appdirs
|
|
||||||
ipdb
|
|
||||||
ipython
|
|
||||||
numpy
|
|
||||||
openpyxl
|
|
||||||
pip
|
|
||||||
requests
|
|
||||||
tox
|
|
||||||
virtualenv
|
|
||||||
virtualenvwrapper
|
|
||||||
];
|
|
||||||
python-with-my-packages = pkgs.python311.withPackages my-python-packages;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nixpkgs.config.allowBroken = true;
|
nixpkgs.config.allowBroken = true;
|
||||||
|
|
||||||
@ -31,6 +16,7 @@ in
|
|||||||
emacs
|
emacs
|
||||||
fd
|
fd
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
bento4
|
||||||
file
|
file
|
||||||
gawk
|
gawk
|
||||||
gcc
|
gcc
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
final: prev: {
|
final: prev: {
|
||||||
rofi-systemd = prev.rofi-systemd.overrideAttrs(_: {
|
rofi-systemd = prev.rofi-systemd.overrideAttrs (_: {
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
repo = "rofi-systemd";
|
repo = "rofi-systemd";
|
||||||
owner = "IvanMalison";
|
owner = "IvanMalison";
|
||||||
@ -8,7 +8,7 @@ final: prev: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
git-sync = prev.git-sync.overrideAttrs(_: {
|
git-sync = prev.git-sync.overrideAttrs (_: {
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
repo = "git-sync";
|
repo = "git-sync";
|
||||||
owner = "IvanMalison";
|
owner = "IvanMalison";
|
||||||
@ -17,24 +17,24 @@ final: prev: {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
picom = prev.picom.overrideAttrs(old: {
|
picom = prev.picom.overrideAttrs (old: {
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
repo = "picom";
|
repo = "picom";
|
||||||
owner = "dccsillag";
|
owner = "dccsillag";
|
||||||
rev = "51b21355696add83f39ccdb8dd82ff5009ba0ae5";
|
rev = "51b21355696add83f39ccdb8dd82ff5009ba0ae5";
|
||||||
sha256 = "sha256-crCwRJd859DCIC0pEerpDqdX2j8ZrNAzVaSSB3mTPN8==";
|
sha256 = "sha256-crCwRJd859DCIC0pEerpDqdX2j8ZrNAzVaSSB3mTPN8==";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [ final.pcre ];
|
nativeBuildInputs = old.nativeBuildInputs ++ [final.pcre];
|
||||||
});
|
});
|
||||||
|
|
||||||
expressvpn = prev.expressvpn.overrideAttrs(_: {
|
expressvpn = prev.expressvpn.overrideAttrs (_: {
|
||||||
src = prev.fetchurl {
|
src = prev.fetchurl {
|
||||||
url = "https://www.expressvpn.works/clients/linux/expressvpn_3.46.0.7-1_amd64.deb";
|
url = "https://www.expressvpn.works/clients/linux/expressvpn_3.46.0.7-1_amd64.deb";
|
||||||
hash = "sha256-v0rr1s32jj79A8IGfJgSGJVlz7rSnZYn4ealOpqee0w=";
|
hash = "sha256-v0rr1s32jj79A8IGfJgSGJVlz7rSnZYn4ealOpqee0w=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
gnupg_2_4_0 = prev.gnupg.overrideAttrs(_: rec {
|
gnupg_2_4_0 = prev.gnupg.overrideAttrs (_: rec {
|
||||||
pname = "gnupg";
|
pname = "gnupg";
|
||||||
# 2.4.1 breaks emacs
|
# 2.4.1 breaks emacs
|
||||||
version = "2.4.0";
|
version = "2.4.0";
|
||||||
@ -49,6 +49,24 @@ final: prev: {
|
|||||||
withTreeSitter = true;
|
withTreeSitter = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
python-with-my-packages = let
|
||||||
|
my-python-packages = python-packages:
|
||||||
|
with python-packages; [
|
||||||
|
argcomplete
|
||||||
|
appdirs
|
||||||
|
ipdb
|
||||||
|
ipython
|
||||||
|
numpy
|
||||||
|
openpyxl
|
||||||
|
pip
|
||||||
|
requests
|
||||||
|
tox
|
||||||
|
virtualenv
|
||||||
|
virtualenvwrapper
|
||||||
|
];
|
||||||
|
in
|
||||||
|
final.python311.withPackages my-python-packages;
|
||||||
|
|
||||||
# gitea = prev.gitea.overrideAttrs(_: {
|
# gitea = prev.gitea.overrideAttrs(_: {
|
||||||
# src = prev.fetchFromGitHub {
|
# src = prev.fetchFromGitHub {
|
||||||
# repo = "gitea";
|
# repo = "gitea";
|
||||||
|
Loading…
Reference in New Issue
Block a user