nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit f6873c9b5c64b8b6d927b1f6c18498fa5c28f078
parent 4246bc29c36d00eaad1c1c54c9878c96b8e64e23
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 10 Oct 2023 16:24:39 +0400

Add sdhcp

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/suckless/sdhcp/default.nix | 27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -519,6 +519,7 @@ lib.makeScope newScope ( sbase = callPackage ./suckless/sbase { }; scc = callPackage ./suckless/scc { }; scroll = callPackage ./suckless/scroll { }; + sdhcp = callPackage ./suckless/sdhcp { }; se = callPackage ./suckless/se { }; sled = callPackage ./suckless/sled { }; ste = callPackage ./suckless/ste { }; diff --git a/pkgs/suckless/sdhcp/default.nix b/pkgs/suckless/sdhcp/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchgit }: + +stdenv.mkDerivation (finalAttrs: { + pname = "sdhcp"; + version = "2018-11-22"; + + src = fetchgit { + url = "git://git.2f30.org/sdhcp"; + rev = "8455fd2d090bd9b227340c30c92c6aa13302c91a"; + hash = "sha256-bN2jFO+cp1Vck0RvB8q2qwMYpUARH2mjZuWs3FkhxR0="; + }; + + postPatch = '' + substituteInPlace Makefile --replace "ranlib" "\$(RANLIB)" + ''; + + makeFlags = [ "AR:=$(AR)" "CC:=$(CC)" "PREFIX=$(out)" "RANLIB:=$(RANLIB)" ]; + + meta = with lib; { + description = "Simple dhcp client"; + homepage = "http://git.2f30.org/sdhcp/"; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + skip.ci = stdenv.isDarwin; + }; +})