2017-02-24 05:31:23 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-09-10 12:22:24 +00:00
|
|
|
name = "earlyoom-${VERSION}";
|
|
|
|
# This environment variable is read by make to set the build version.
|
2019-05-28 23:31:38 +00:00
|
|
|
VERSION = "1.3";
|
2017-02-24 05:31:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfjakob";
|
|
|
|
repo = "earlyoom";
|
2018-09-10 12:22:24 +00:00
|
|
|
rev = "v${VERSION}";
|
2019-05-28 23:31:38 +00:00
|
|
|
sha256 = "0fwbx0y80nqgkxrc9kf9j3iwa0wbps2jmqir3pgqbc2cj0wjh0lr";
|
2017-02-24 05:31:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-09-10 12:22:24 +00:00
|
|
|
install -D earlyoom $out/bin/earlyoom
|
2017-02-24 05:31:23 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Early OOM Daemon for Linux";
|
|
|
|
homepage = https://github.com/rfjakob/earlyoom;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|