2020-11-18 22:50:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule, fetchpatch }:
|
2018-02-03 21:52:20 +00:00
|
|
|
|
2020-08-09 19:53:11 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
version = "0.6.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "grobi";
|
2018-02-03 21:52:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-09 19:53:11 +00:00
|
|
|
rev = "v${version}";
|
2018-02-03 21:52:20 +00:00
|
|
|
owner = "fd0";
|
|
|
|
repo = "grobi";
|
2020-08-09 19:53:11 +00:00
|
|
|
sha256 = "032lvnl2qq9258y6q1p60lfi7qir68zgq8zyh4khszd3wdih7y3s";
|
2018-02-03 21:52:20 +00:00
|
|
|
};
|
|
|
|
|
2020-08-09 19:53:11 +00:00
|
|
|
vendorSha256 = "1ibwx5rbxkygfx78j3g364dmbwwa5b34qmzq3sqcbrsnv8rzrwvj";
|
|
|
|
|
2020-11-18 22:50:02 +00:00
|
|
|
patches = [
|
|
|
|
# fix failing test on go 1.15
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/fd0/grobi/commit/176988ab087ff92d1408fbc454c77263457f3d7e.patch";
|
|
|
|
sha256 = "0j8y3gns4lm0qxqxzmdn2ll0kq34mmfhf83lvsq13iqhp5bx3y31";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-08-09 19:53:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/fd0/grobi";
|
2018-02-03 21:52:20 +00:00
|
|
|
description = "Automatically configure monitors/outputs for Xorg via RANDR";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|