2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, fetchpatch }:
|
2018-02-03 22:52:20 +01:00
|
|
|
|
2020-08-09 21:53:11 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
version = "0.6.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "grobi";
|
2018-02-03 22:52:20 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-08-09 21:53:11 +02:00
|
|
|
rev = "v${version}";
|
2018-02-03 22:52:20 +01:00
|
|
|
owner = "fd0";
|
|
|
|
repo = "grobi";
|
2023-08-10 13:35:46 +02:00
|
|
|
hash = "sha256-evgDY+OjfQ0ngf4j/D4yOeITHQXmBmw8KiJhLKjdVAw=";
|
2018-02-03 22:52:20 +01:00
|
|
|
};
|
|
|
|
|
2023-08-10 13:35:46 +02:00
|
|
|
vendorHash = "sha256-cvP8M9pW58WwHvhXTMYqivNVGzHjDYlOd8/PvnLpfMU=";
|
2020-08-09 21:53:11 +02:00
|
|
|
|
2020-11-18 23:50:02 +01:00
|
|
|
patches = [
|
|
|
|
# fix failing test on go 1.15
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/fd0/grobi/commit/176988ab087ff92d1408fbc454c77263457f3d7e.patch";
|
2023-08-10 13:35:46 +02:00
|
|
|
hash = "sha256-YfjRV7kQxxGw3nQgB12tZOAJKBW21d9xx6BSou0bHkk=";
|
2020-11-18 23:50:02 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/fd0/grobi";
|
2018-02-03 22:52:20 +01:00
|
|
|
description = "Automatically configure monitors/outputs for Xorg via RANDR";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
platforms = platforms.linux;
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "grobi";
|
2018-02-03 22:52:20 +01:00
|
|
|
};
|
|
|
|
}
|