Created
December 18, 2018 18:14
-
-
Save swdunlop/610f8be4939de505e152e181fbf918f3 to your computer and use it in GitHub Desktop.
Packaging saml2aws for Nix
This file contains 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
# to install: | |
# nix-env -f default.nix -i | |
with import <nixpkgs> {}; | |
buildGoPackage rec { | |
name = "saml2aws-${version}"; | |
meta = { | |
description = "CLI tool which enables you to login and retrieve AWS temporary credentials using a SAML IDP"; | |
homepage = "https://github.com/Versent/saml2aws"; | |
license = lib.licenses.mit; | |
}; | |
version = "2.11.0"; | |
goPackagePath = "github.com/Versent/saml2aws"; | |
subpackages = [ "cmd/saml2aws" ]; | |
goDeps = ./deps.nix; | |
src = fetchFromGitHub { | |
owner = "Versent"; | |
repo = "saml2aws"; | |
rev = "v${version}"; | |
sha256 = "0n841mknyk4nwbsahklg2r02kgxhr9p8narrv476281jylaj6zc7"; | |
}; | |
} |
This file contains 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
# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix) | |
[ | |
{ | |
goPackagePath = "github.com/AlecAivazis/survey"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/AlecAivazis/survey"; | |
rev = "e752db451e07e09c7d7dc8cada807a44bdb0fd47"; | |
sha256 = "00fhmsaymrf86pg246cqxvfrivgfkyg3i0aixsp3sn15hg3i0vlq"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/Azure/go-ntlmssp"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/Azure/go-ntlmssp"; | |
rev = "4b934ac9dad38d389d34f0b98d98b2467c422012"; | |
sha256 = "0pwrax8mih2jgsdifag0346vh0vivgyz45jc4kjy6dhp3qhsy34z"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/PuerkitoBio/goquery"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/PuerkitoBio/goquery"; | |
rev = "dc2ec5c7ca4d9aae063b79b9f581dd3ea6afd2b2"; | |
sha256 = "11010z9ask21r0dskvm2pbh3z8951bnpcqg8aqa213if4h34gaa2"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/alecthomas/kingpin"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/alecthomas/kingpin"; | |
rev = "947dcec5ba9c011838740e680966fd7087a71d0d"; | |
sha256 = "0mndnv3hdngr3bxp7yxfd47cas4prv98sqw534mx7vp38gd88n5r"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/alecthomas/template"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/alecthomas/template"; | |
rev = "a0175ee3bccc567396460bf5acd36800cb10c49c"; | |
sha256 = "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/alecthomas/units"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/alecthomas/units"; | |
rev = "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a"; | |
sha256 = "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/andybalholm/cascadia"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/andybalholm/cascadia"; | |
rev = "901648c87902174f774fac311d7f176f8647bdaa"; | |
sha256 = "09j8cavbhqqdxjqrkwbc40g8p0i49zf3184rpjm5p2rjbprcghcc"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/aws/aws-sdk-go"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/aws/aws-sdk-go"; | |
rev = "bfc1a07cf158c30c41a3eefba8aae043d0bb5bff"; | |
sha256 = "0vfpygjhdikmsqn9dgmp965ji5q790gcz9mg49mcpipc9n2lzx0d"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/beevik/etree"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/beevik/etree"; | |
rev = "9d7e8feddccb4ed1b8afb54e368bd323d2ff652c"; | |
sha256 = "0f3lj7azxd5qq29hqd32211ds7n56i3rgmfll6c1f4css1f3srxg"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/briandowns/spinner"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/briandowns/spinner"; | |
rev = "48dbb65d7bd5c74ab50d53d04c949f20e3d14944"; | |
sha256 = "1178kn72agihs13ffgm2sz5ad61pqwdmkrh8rhggzbaagch9mc75"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/danieljoos/wincred"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/danieljoos/wincred"; | |
rev = "412b574fb496839b312a75fba146bd32a89001cf"; | |
sha256 = "1bb1928nnikx5036aw4152p55g8xgwx42rv0n2i5zydh1031f50m"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/davecgh/go-spew"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/davecgh/go-spew"; | |
rev = "346938d642f2ec3594ed81d874461961cd0faa76"; | |
sha256 = "0d4jfmak5p6lb7n2r6yvf5p1zcw0l8j74kn55ghvr7zr7b7axm6c"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/fatih/color"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/fatih/color"; | |
rev = "5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4"; | |
sha256 = "0v8msvg38r8d1iiq2i5r4xyfx0invhc941kjrsg5gzwvagv55inv"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/go-ini/ini"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/go-ini/ini"; | |
rev = "06f5f3d67269ccec1fe5fe4134ba6e982984f7f5"; | |
sha256 = "0fx123601aiqqn0yr9vj6qp1bh8gp240w4qdm76irs73q8dxlk7a"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/headzoo/surf"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/headzoo/surf"; | |
rev = "a4a8c16c01dc47ef3a25326d21745806f3e6797a"; | |
sha256 = "1dzcp0wdh3qmm5s5hixk9vj2s2kcvkpbhjdwz7kh2crvnavdgwh6"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/jmespath/go-jmespath"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/jmespath/go-jmespath"; | |
rev = "0b12d6b5"; | |
sha256 = "1vv6hph8j6xgv7gwl9vvhlsaaqsm22sxxqmgmldi4v11783pc1ld"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/mattn/go-colorable"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/mattn/go-colorable"; | |
rev = "167de6bfdfba052fa6b2d3664c8f5272e23c9072"; | |
sha256 = "1nwjmsppsjicr7anq8na6md7b1z84l9ppnlr045hhxjvbkqwalvx"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/mattn/go-isatty"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/mattn/go-isatty"; | |
rev = "0360b2af4f38e8d38c7fce2a9f4e702702d73a39"; | |
sha256 = "06w45aqz2a6yrk25axbly2k5wmsccv8cspb94bfmz4izvw8h927n"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/mgutz/ansi"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/mgutz/ansi"; | |
rev = "9520e82c474b0a04dd04f8a40959027271bab992"; | |
sha256 = "00bz22314j26736w1f0q4jy9d9dfaml17vn890n5zqy3cmvmww1j"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/mitchellh/go-homedir"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/mitchellh/go-homedir"; | |
rev = "3864e76763d94a6df2f9960b16a20a33da9f9a66"; | |
sha256 = "1n8vya16l60i5jms43yb8fzdgwvqa2q926p5wkg3lbrk8pxy1nv0"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/pkg/errors"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/pkg/errors"; | |
rev = "645ef00459ed84a119197bfb8d8205042c6df63d"; | |
sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/pmezard/go-difflib"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/pmezard/go-difflib"; | |
rev = "792786c7400a136282c1664665ae0a8db921c6c2"; | |
sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/robertkrimen/otto"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/robertkrimen/otto"; | |
rev = "15f95af6e78dcd2030d8195a138bd88d4f403546"; | |
sha256 = "07j7l340lmqwpfscwyb8llk3k37flvs20a4a8vzc85f16xyd9npf"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/sirupsen/logrus"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/sirupsen/logrus"; | |
rev = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"; | |
sha256 = "0g5z7al7kky11ai2dhac6gkp3b5pxsvx72yj3xg4wg3265gbn7yz"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/stretchr/objx"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/stretchr/objx"; | |
rev = "477a77ecc69700c7cdeb1fa9e129548e1c1c393c"; | |
sha256 = "0iph0qmpyqg4kwv8jsx6a56a7hhqq8swrazv40ycxk9rzr0s8yls"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/stretchr/testify"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/stretchr/testify"; | |
rev = "f35b8ab0b5a2cef36673838d662e249dd9c94686"; | |
sha256 = "0dlszlshlxbmmfxj5hlwgv3r22x0y1af45gn1vd198nvvs3pnvfs"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/tidwall/gjson"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/tidwall/gjson"; | |
rev = "afaeb9562041a8018c74e006551143666aed08bf"; | |
sha256 = "1hysk947mrlpaqjq7mab0nnm190fwvfdifaa2cq3sbwfrzx6h1c8"; | |
}; | |
} | |
{ | |
goPackagePath = "github.com/tidwall/match"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/tidwall/match"; | |
rev = "1731857f09b1f38450e2c12409748407822dc6be"; | |
sha256 = "14nv96h0mjki5q685qx8y331h4yga6hlfh3z9nz6acvnv284q578"; | |
}; | |
} | |
{ | |
goPackagePath = "golang.org/x/crypto"; | |
fetch = { | |
type = "git"; | |
url = "https://go.googlesource.com/crypto"; | |
rev = "a8fb68e7206f8c78be19b432c58eb52a6aa34462"; | |
sha256 = "1svphap40hy5srcqnb0l207r6wfm9hf0f3fcaq124qp4m91s6vlf"; | |
}; | |
} | |
{ | |
goPackagePath = "golang.org/x/net"; | |
fetch = { | |
type = "git"; | |
url = "https://go.googlesource.com/net"; | |
rev = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196"; | |
sha256 = "1f6q8kbijnrfy6wjqxrzgjf38ippckc5w34lhqsjs7kq045aar9a"; | |
}; | |
} | |
{ | |
goPackagePath = "golang.org/x/sys"; | |
fetch = { | |
type = "git"; | |
url = "https://go.googlesource.com/sys"; | |
rev = "8014b7b116a67fea23fbb82cd834c9ad656ea44b"; | |
sha256 = "1ld5nr0zqjgkny7d5biix9hbnxnlzxxa5nspnal2q2c7wnai8apa"; | |
}; | |
} | |
{ | |
goPackagePath = "golang.org/x/text"; | |
fetch = { | |
type = "git"; | |
url = "https://go.googlesource.com/text"; | |
rev = "f21a4dfb5e38f5895301dc265a8def02365cc3d0"; | |
sha256 = "0r6x6zjzhr8ksqlpiwm5gdd7s209kwk5p4lw54xjvz10cs3qlq19"; | |
}; | |
} | |
{ | |
goPackagePath = "gopkg.in/AlecAivazis/survey.v1"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/AlecAivazis/survey"; | |
rev = "e752db451e07e09c7d7dc8cada807a44bdb0fd47"; | |
sha256 = "00fhmsaymrf86pg246cqxvfrivgfkyg3i0aixsp3sn15hg3i0vlq"; | |
}; | |
} | |
{ | |
goPackagePath = "gopkg.in/ini.v1"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/go-ini/ini"; | |
rev = "06f5f3d67269ccec1fe5fe4134ba6e982984f7f5"; | |
sha256 = "0fx123601aiqqn0yr9vj6qp1bh8gp240w4qdm76irs73q8dxlk7a"; | |
}; | |
} | |
{ | |
goPackagePath = "gopkg.in/sourcemap.v1"; | |
fetch = { | |
type = "git"; | |
url = "https://github.com/go-sourcemap/sourcemap"; | |
rev = "6e83acea0053641eff084973fee085f0c193c61a"; | |
sha256 = "08rf2dl13hbnm3fq2cm0nnsspy9fhf922ln23cz5463cv7h62as4"; | |
}; | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not use
github-release
to properly set the version; github-release was deeply broken on Darwin since it was built with Go 1.4 and I refuse to go further down the rabbit hole. I consign these packages and their soul to whoever finds them.