2016-12-06 18:07:02 +00:00
|
|
|
# This file was generated by go2nix, then modified by hand for Darwin support.
|
2016-10-07 22:16:57 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, fixDarwinDylibNames, darwin }:
|
2016-12-06 18:07:02 +00:00
|
|
|
|
2016-10-07 22:16:57 +01:00
|
|
|
buildGoPackage rec {
|
2016-12-06 18:07:02 +00:00
|
|
|
name = "sudolikeaboss-unstable-${version}";
|
|
|
|
version = "20161127-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
rev = "2d9afe19f872c9f433d476e57ee86169781b164c";
|
2016-10-07 22:16:57 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/ravenac95/sudolikeaboss";
|
2016-12-06 18:07:02 +00:00
|
|
|
|
2016-10-07 22:16:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ravenac95";
|
|
|
|
repo = "sudolikeaboss";
|
2016-12-06 18:07:02 +00:00
|
|
|
inherit rev;
|
|
|
|
sha256 = "0ni3v4kanxfzxzjd48f5dgv62jbfrw7kdmq0snj09hw7ciw55yg6";
|
2016-10-07 22:16:57 +01:00
|
|
|
};
|
2016-12-06 18:07:02 +00:00
|
|
|
|
2016-10-07 22:16:57 +01:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with darwin.apple_sdk.frameworks; [
|
|
|
|
Cocoa
|
|
|
|
fixDarwinDylibNames
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install_name_tool -delete_rpath $out/lib -add_rpath $bin $bin/bin/sudolikeaboss
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Get 1password access from iterm2";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.grahamc ];
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|