{"id":15080628,"url":"https://github.com/owdevel/nix-shell-selenium-chrome","last_synced_at":"2026-01-03T16:05:40.520Z","repository":{"id":115422459,"uuid":"571911479","full_name":"owdevel/nix-shell-selenium-chrome","owner":"owdevel","description":"Example of how to use google-chrome with nix-shell and python selenium","archived":false,"fork":false,"pushed_at":"2022-11-29T06:51:03.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T03:29:01.345Z","etag":null,"topics":["chromedriver","google-chrome","nix-shell","nixos","selenium-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owdevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-29T06:34:02.000Z","updated_at":"2022-11-29T06:47:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"a02a3c59-3277-4413-8f86-a99c6775ee7b","html_url":"https://github.com/owdevel/nix-shell-selenium-chrome","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owdevel%2Fnix-shell-selenium-chrome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owdevel%2Fnix-shell-selenium-chrome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owdevel%2Fnix-shell-selenium-chrome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owdevel%2Fnix-shell-selenium-chrome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owdevel","download_url":"https://codeload.github.com/owdevel/nix-shell-selenium-chrome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896302,"owners_count":20365354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chromedriver","google-chrome","nix-shell","nixos","selenium-python"],"created_at":"2024-09-25T05:03:58.637Z","updated_at":"2026-01-03T16:05:40.493Z","avatar_url":"https://github.com/owdevel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nix-shell Selenium with Google Chrome Binary\n\nSimple example of using `nix-shell` to create a development environment for `selenium` in python using `chromedriver` and the `google-chrome` binary.\n\nThe nixpkgs version of [google-chrome](https://github.com/NixOS/nixpkgs/blob/nixos-22.05/pkgs/applications/networking/browsers/google-chrome/default.nix#L163) appends the channel (stable/beta/dev) to the binary name which causes selenium to not be able to find the correct binary as it is looking for the binary name `google-chrome` not `google-chrome-stable`.\n\nThis repo uses `writeShellScriptBin` to create a `google-chrome` script which exectues the correct binary.\nCredit goes to this [reddit post](https://www.reddit.com/r/NixOS/comments/nur5zv/simple_way_to_rename_symlink_or_wrap_a_system/) for the idea.\n\nTested on nix-os 22.05.\n\n## TLDR\nAdd this to your `shell.nix` packages.\n```\n(pkgs.writeShellScriptBin \"google-chrome\" \"exec -a $0 ${pkgs.google-chrome}/bin/google-chrome-stable $@\")\n```\n\n## Author's Note\nAs of writing this I'm still new to Nix-OS and the related ecosystem.\nIf there is a better way of doing this please let me know :).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowdevel%2Fnix-shell-selenium-chrome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowdevel%2Fnix-shell-selenium-chrome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowdevel%2Fnix-shell-selenium-chrome/lists"}