Merge pull request #85059 from r-ryantm/auto-update/earlyoom

earlyoom: 1.5 -> 1.6
This commit is contained in:
Mario Rodas 2020-04-12 18:25:05 -05:00 committed by GitHub
commit 4d03f4b95c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,31 @@
{ lib, stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, pandoc, installShellFiles, withManpage ? false }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "earlyoom-${VERSION}"; pname = "earlyoom";
# This environment variable is read by make to set the build version. version = "1.6";
VERSION = "1.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rfjakob"; owner = "rfjakob";
repo = "earlyoom"; repo = "earlyoom";
rev = "v${VERSION}"; rev = "v${version}";
sha256 = "1wcw2lfd9ajachbrjqywkzj9x6zv32gij2r6yap26x1wdd5x7i93"; sha256 = "0g2bjsvnqq5h4g1k3a0x6ixb334wpzbm2gafl78b6ic6j45smwcs";
}; };
nativeBuildInputs = stdenv.lib.optionals withManpage [ pandoc installShellFiles ];
makeFlags = [ "VERSION=${version}" ];
installPhase = '' installPhase = ''
install -D earlyoom $out/bin/earlyoom install -D earlyoom $out/bin/earlyoom
'' + stdenv.lib.optionalString withManpage ''
installManPage earlyoom.1
''; '';
meta = { meta = with stdenv.lib; {
description = "Early OOM Daemon for Linux"; description = "Early OOM Daemon for Linux";
homepage = "https://github.com/rfjakob/earlyoom"; homepage = "https://github.com/rfjakob/earlyoom";
license = lib.licenses.mit; license = licenses.mit;
platforms = lib.platforms.linux; platforms = platforms.linux;
maintainers = with lib.maintainers; [ ]; maintainers = with maintainers; [];
}; };
} }