+++ /dev/null
-{ pkgs ? import <nixpkgs> {}
-}:
-
-with pkgs;
-stdenv.mkDerivation rec {
- name = "lldpd";
- src = nix-gitignore.gitignoreSource [] ./.;
- configureFlags = [
- "--localstatedir=/var"
- "--enable-pie"
- "--with-snmp"
- "--with-systemdsystemunitdir=\${out}/lib/systemd/system"
- ];
-
- nativeBuildInputs = [ pkgconfig autoreconfHook git check ];
- buildInputs = [ libevent readline net-snmp openssl ];
- outputs = [ "out" "dev" "man" "doc" ];
-}
--- /dev/null
+{
+ "nodes": {
+ "flake-utils": {
+ "locked": {
+ "lastModified": 1642700792,
+ "narHash": "sha256-XqHrk7hFb+zBvRg6Ghl+AZDq03ov6OshJLiSWOoX5es=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "846b2ae0fc4cc943637d3d1def4454213e203cba",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1644135594,
+ "narHash": "sha256-EV+8+YsN0apcVm+rBRc9iY1HzWU1gXqGIXSoYIU8QZU=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "bb96e481b317c770281c1bfd9e6face9bfe0888f",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
--- /dev/null
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs";
+ flake-utils.url = "github:numtide/flake-utils";
+ };
+ outputs = { self, flake-utils, ... }@inputs:
+ flake-utils.lib.eachDefaultSystem (system:
+ let
+ pkgs = inputs.nixpkgs.legacyPackages."${system}";
+ in
+ {
+ defaultPackage = pkgs.stdenv.mkDerivation rec {
+ name = "lldpd";
+ src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
+ configureFlags = [
+ "--localstatedir=/var"
+ "--enable-pie"
+ "--with-snmp"
+ "--with-systemdsystemunitdir=\${out}/lib/systemd/system"
+ ];
+
+ nativeBuildInputs = with pkgs; [ pkgconfig autoreconfHook git check ];
+ buildInputs = with pkgs; [ libevent readline net-snmp openssl ];
+ outputs = [ "out" "dev" "man" "doc" ];
+ };
+ });
+}