Skip to content

Instantly share code, notes, and snippets.

@srhb
Created March 18, 2019 16:00
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 srhb/447e265be96ea111195303052bb6207f to your computer and use it in GitHub Desktop.
Save srhb/447e265be96ea111195303052bb6207f to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
fetchGit = { ... }@args: builtins.fetchGit { inherit (args) url; };
buildGoPackage = pkgs.buildGoPackage.override { fetchgit = fetchGit; };
in
pkgs.someGoPackage.override { inherit buildGoPackage; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment