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