Skip to content

Instantly share code, notes, and snippets.

@kamilchm
Last active February 9, 2017 16:39
Show Gist options
  • Save kamilchm/4c07366c0fcec8c9974ae93e07ef3552 to your computer and use it in GitHub Desktop.
Save kamilchm/4c07366c0fcec8c9974ae93e07ef3552 to your computer and use it in GitHub Desktop.
amazon-ssm-agent nix derivation
with import <nixpkgs> {};
buildGoPackage rec {
name = "amazon-ssm-agent-${version}";
version = "2.0.633.0";
goPackagePath = "github.com/aws/amazon-ssm-agent";
subPackages = [ "agent" ];
src = fetchFromGitHub {
rev = "v${version}";
owner = "aws";
repo = "amazon-ssm-agent";
sha256 = "10arshfn2k3m3zzgw8b3xc6ywd0ss73746nq5srh2jir7mjzi4xv";
};
preBuild = ''
mv go/src/${goPackagePath}/vendor strange-vendor
mv strange-vendor/src go/src/${goPackagePath}/vendor
'';
# TODO: add metadata https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes
meta = {
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment