Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created April 4, 2018 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/128d4191ef28082cdd072a4231d76d38 to your computer and use it in GitHub Desktop.
Save cleverca22/128d4191ef28082cdd072a4231d76d38 to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
version = "5.0.0";
py = pkgs.python36Packages;
in pkgs.stdenv.mkDerivation {
name = "wpgtk";
src = builtins.fetchTarball {
url = "https://github.com/deviantfero/wpgtk/archive/${version}.tar.gz";
# sha256 = "1swm30imdc1b25iclwxr0rgp9kim87naxiwpaf8mwh9wjyrfx857";
};
buildInputs = with pkgs; [ python36 imagemagick feh ] ++ (with py; [ pip setuptools ]);
installPhase = ''
mkdir -p $out/bin
${py.pip} install --target $out/bin .
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment