diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix b/nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix new file mode 100644 index 000000000000..5154f68cde4e --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/earlyoom/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "earlyoom-${VERSION}"; + # This environment variable is read by make to set the build version. + VERSION = "1.2"; + + src = fetchFromGitHub { + owner = "rfjakob"; + repo = "earlyoom"; + rev = "v${VERSION}"; + sha256 = "0bpqlbsjcmcizgw75j1zyw1sp2cgwhaar9y70sibw1km011yqbzd"; + }; + + installPhase = '' + install -D earlyoom $out/bin/earlyoom + ''; + + 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; [ ]; + }; +} |