Created
October 24, 2016 15:57
-
-
Save qknight/d26a789089845bac08dcead4e20dcec8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =========== collect_data.py ============= | |
| #! /usr/bin/env nix-shell | |
| #! nix-shell collect_data-environment.nix --command 'python3 collect_data.py' | |
| here is python code | |
| =========== default.nix ============== | |
| with import <nixpkgs> { }; | |
| let | |
| pkgs1 = import (pkgs.fetchFromGitHub { | |
| owner = "qknight"; | |
| repo = "nixpkgs"; | |
| rev = "a1dd8b2a5b035b758f23584dbf212dfbf3bff67d"; | |
| sha256 = "1zn9znsjg6hw99mshs0yjpcnh9cf2h0y5fw37hj6pfzvvxfrfp9j"; | |
| }) {}; | |
| in | |
| pkgs1.python3Packages.buildPythonPackage rec { | |
| name = "crawler"; | |
| version = "0.0.1"; | |
| buildInputs = [ pkgs.firefox ]; | |
| propagatedBuildInputs = with pkgs1.python3Packages; [ | |
| virtual-display selenium | |
| ]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment