diff options
author | R. RyanTM <ryantm-bot@ryantm.com> | 2020-04-12 09:09:57 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-04-12 09:09:57 +0000 |
commit | 1c0b645d7b54ed0e5514e780bdd2cc72efc079d0 (patch) | |
tree | cf9fbd8297059faf5b441dbe22da87580a551e02 /pkgs/os-specific/linux | |
parent | a8a254d8281694ba995a70cb536f32028e2c9ff4 (diff) | |
download | nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar.gz nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar.bz2 nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar.lz nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar.xz nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.tar.zst nixpkgs-1c0b645d7b54ed0e5514e780bdd2cc72efc079d0.zip |
earlyoom: 1.5 -> 1.6
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/earlyoom/default.nix | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/pkgs/os-specific/linux/earlyoom/default.nix b/pkgs/os-specific/linux/earlyoom/default.nix index 2585c5b3c2f..2e0f5ef7833 100644 --- a/pkgs/os-specific/linux/earlyoom/default.nix +++ b/pkgs/os-specific/linux/earlyoom/default.nix @@ -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; []; }; } |