1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix

27 lines
669 B
Nix
Raw Normal View History

2017-02-24 05:31:23 +00:00
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "earlyoom-${VERSION}";
# This environment variable is read by make to set the build version.
2020-03-24 03:39:01 +00:00
VERSION = "1.5";
2017-02-24 05:31:23 +00:00
src = fetchFromGitHub {
owner = "rfjakob";
repo = "earlyoom";
rev = "v${VERSION}";
2020-03-24 03:39:01 +00:00
sha256 = "1wcw2lfd9ajachbrjqywkzj9x6zv32gij2r6yap26x1wdd5x7i93";
2017-02-24 05:31:23 +00:00
};
installPhase = ''
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";
2017-02-24 05:31:23 +00:00
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ];
};
}