From f6f22f6fb1940672bfc3894c2f5893db82f714b3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 27 Nov 2021 23:58:36 +0100 Subject: [PATCH] build: simplify a bit default.nix --- default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/default.nix b/default.nix index b7146a6d..2d856dc7 100644 --- a/default.nix +++ b/default.nix @@ -1,9 +1,10 @@ { pkgs ? import {} }: -pkgs.stdenv.mkDerivation rec { +with pkgs; +stdenv.mkDerivation rec { name = "lldpd"; - src = pkgs.nix-gitignore.gitignoreSource [] ./.; + src = nix-gitignore.gitignoreSource [] ./.; configureFlags = [ "--localstatedir=/var" "--enable-pie" @@ -11,7 +12,7 @@ pkgs.stdenv.mkDerivation rec { "--with-systemdsystemunitdir=\${out}/lib/systemd/system" ]; - nativeBuildInputs = [ pkgs.pkgconfig pkgs.autoreconfHook ]; - buildInputs = [ pkgs.libevent pkgs.readline pkgs.net-snmp pkgs.openssl ]; + nativeBuildInputs = [ pkgconfig autoreconfHook ]; + buildInputs = [ libevent readline net-snmp openssl ]; outputs = [ "out" "dev" "man" "doc" ]; } -- 2.39.5