Add rfd python package nix overlay (#11)

* Add python3.8

* Add rfd python package overlay
This commit is contained in:
Dave Gallant
2020-06-11 01:11:26 -04:00
committed by GitHub
parent 71f1e176ed
commit 6293cc326c
4 changed files with 58 additions and 18 deletions

View File

@@ -37,11 +37,12 @@
nmap
openvpn
postman
python3
python38
rfd
ripgrep
ruby
rustup
shellcheck
shfmt
signal-desktop
slack
spotify
@@ -56,7 +57,7 @@
zathura
zip
zsh-autosuggestions
zsh-syntax-highlighting
zsh-fast-syntax-highlighting
];
programs.zsh = {
@@ -71,14 +72,14 @@
};
initExtra = ''
eval "$(direnv hook zsh)"
eval "$(_RFD_COMPLETE=source_zsh rfd)"
eval "$(starship init zsh)"
export EDITOR='neovim'
export GPG_TTY=$(tty)
export GOPATH=$HOME/go
source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export PATH=$PATH:~/.local/bin
eval "$(direnv hook zsh)"
eval "$(_RFD_COMPLETE=source_zsh rfd)"
eval "$(starship init zsh)"
'';
shellAliases = {
@@ -99,8 +100,8 @@
plugins = [
{
name = "syntax-highlighting";
src = "${pkgs.zsh-syntax-highlighting}/share/zsh/site-functions";
name = "fast-syntax-highlighting";
src = "${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions";
}
];

View File

@@ -0,0 +1,39 @@
self: super:
rec {
python3 = with super; super.python3.override {};
pythonPackages = python3.pkgs;
rfd = with self; pythonPackages.buildPythonApplication rec {
pname = "rfd";
version = "v0.3.4";
src = fetchFromGitHub {
owner = "davegallant";
repo = "rfd";
rev = version;
sha256 = "08f9xsw5h35p5sbljrv7vrzvdz17icgr85n7507p27fcg0yphd0s";
};
# No tests included
doCheck = false;
propagatedBuildInputs = with pythonPackages; [
beautifulsoup4
click
colorama
requests
];
passthru.python3 = python3;
meta = with super.lib; {
homepage = "https://www.redflagdeals.com/";
description = "View RedFlagDeals from the command line";
license = licenses.asl20;
maintainers = [ ];
};
};
}