+++ /dev/null
-{ fetchpatch, file, fetchurl, libnsl, stdenv, lib }:
-stdenv.mkDerivation rec {
- pname = "libspf2";
- version = "1.2.10";
-
- patches = [
- (fetchpatch {
- name = "fix-variadic-macros.patch";
- url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
- sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic";
- })
- ];
- preConfigure = ''
- sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure
- '';
- configureFlags = [
- "--enable-static"
- ];
- postInstall = ''
- rm $out/bin/*_static
- '';
- src = fetchurl {
- url = "https://www.libspf2.org/spf/${pname}-${version}.tar.gz";
- sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr";
- };
-
- buildInputs = [ libnsl ];
-
- meta = {
- description = "Sender Policy Framework record checking library";
- homepage = "https://www.libspf2.org/";
- platforms = lib.platforms.linux;
- };
-}
+++ /dev/null
-{
- "nodes": {
- "flake-utils": {
- "locked": {
- "lastModified": 1609246779,
- "narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
- "nixpkgs": {
- "locked": {
- "lastModified": 1597943282,
- "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "root": {
- "inputs": {
- "flake-utils": "flake-utils",
- "nixpkgs": "nixpkgs"
- }
- }
- },
- "root": "root",
- "version": 7
-}
+++ /dev/null
-{
- description = "Sender Policy Framework record checking library";
-
- inputs.flake-utils.url = "github:numtide/flake-utils";
- inputs.nixpkgs.url = "github:NixOS/nixpkgs";
-
- outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
- let
- pkgs = import nixpkgs { inherit system; overlays = []; };
- libspf2 = pkgs.callPackage ./. {};
- in rec {
- packages.libspf2 = libspf2;
- defaultPackage = libspf2;
- legacyPackages.libfspf2 = libspf2;
- apps.libspf2 = flake-utils.lib.mkApp { drv = libspf2; name = "spfquery"; };
- defaultApp = apps.libspf2;
- checks.build = libspf2;
- hydraJobs.build = libspf2;
- }
- ) // rec {
- overlays = {
- libspf2 = final: prev: {
- libspf2 = self.defaultPackage."${final.system}";
- };
- };
- overlay = overlays.libspf2;
- };
-}
"type": "github"
}
},
- "flake-utils_2": {
- "locked": {
- "lastModified": 1609246779,
- "narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
- "libspf2": {
- "inputs": {
- "flake-utils": "flake-utils_2",
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "dir": "flakes/libspf2",
- "lastModified": 1629758991,
- "narHash": "sha256-J0mMj/lPMR+QaqvAzUpOUWELYoyKCpI20T4YZHerAEs=",
- "ref": "master",
- "rev": "5e2ec9fb8628136e7f9f618c68c0e42ab086b80e",
- "revCount": 866,
- "type": "git",
- "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
- },
- "original": {
- "dir": "flakes/libspf2",
- "type": "git",
- "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
- }
- },
"myuids": {
"locked": {
"dir": "flakes/myuids",
"root": {
"inputs": {
"flake-utils": "flake-utils",
- "libspf2": "libspf2",
"myuids": "myuids",
"nixpkgs": "nixpkgs"
}
type = "git";
dir = "flakes/myuids";
};
- inputs.libspf2 = {
- url = "https://git.immae.eu/perso/Immae/Config/Nix.git";
- type = "git";
- dir = "flakes/libspf2";
- inputs.nixpkgs.follows = "nixpkgs";
- };
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
- outputs = { self, myuids, libspf2, flake-utils, nixpkgs }: flake-utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
+ outputs = { self, myuids, flake-utils, nixpkgs }: flake-utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
let
- pkgs = import nixpkgs { inherit system; overlays = [ libspf2.overlay ]; };
+ pkgs = import nixpkgs { inherit system; overlays = []; };
in rec {
packages.opendmarc = pkgs.callPackage ./. {};
defaultPackage = packages.opendmarc;
"type": "github"
}
},
- "flake-utils_2": {
- "locked": {
- "lastModified": 1609246779,
- "narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
- "libspf2": {
- "inputs": {
- "flake-utils": "flake-utils_2",
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "dir": "flakes/libspf2",
- "lastModified": 1629758991,
- "narHash": "sha256-J0mMj/lPMR+QaqvAzUpOUWELYoyKCpI20T4YZHerAEs=",
- "ref": "master",
- "rev": "5e2ec9fb8628136e7f9f618c68c0e42ab086b80e",
- "revCount": 866,
- "type": "git",
- "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
- },
- "original": {
- "dir": "flakes/libspf2",
- "type": "git",
- "url": "https://git.immae.eu/perso/Immae/Config/Nix.git"
- }
- },
"myuids": {
"locked": {
"dir": "flakes/myuids",
},
"nix-lib": {
"locked": {
- "lastModified": 1629674054,
- "narHash": "sha256-Vl4SmTN1Cwz9T8Te85Bkq11e9VPl4JRNO+Rzmxxop+c=",
+ "lastModified": 1630358951,
+ "narHash": "sha256-y6jh6YDWX6fX88tS9bSFOVSnckCL4qgt7UqUJhLPSx8=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "f118101266328f38241e266d30316cd3c50e43da",
+ "rev": "2d786792ca69c98a8655858464e53698ad7311e2",
"type": "github"
},
"original": {
"opendmarc": {
"inputs": {
"flake-utils": "flake-utils",
- "libspf2": "libspf2",
"myuids": "myuids",
"nixpkgs": "nixpkgs"
},
"locked": {
- "narHash": "sha256-co+AfUh+3SMGGFTQy5u8470UHXbLiPeAlDWRCdoNdFc=",
+ "narHash": "sha256-eIe5hzNsp1zz5m4ZMzORwdHuLkhEsKkS7WMpPOJE4ok=",
"path": "../../opendmarc",
"type": "path"
},
"root": {
"inputs": {
"nix-lib": "nix-lib",
- "nixpkgs": [
- "opendmarc",
- "nixpkgs"
- ],
"opendmarc": "opendmarc"
}
}
};
inputs.nix-lib.url = "github:NixOS/nixpkgs";
- # Necessary for dependencies
- inputs.nixpkgs.follows = "opendmarc/nixpkgs";
-
description = "Private configuration for opendmarc";
- outputs = { self, nix-lib, opendmarc, nixpkgs }:
+ outputs = { self, nix-lib, opendmarc }:
let
cfg = name': { config, lib, pkgs, name, ... }: lib.mkIf (name == name') {
users.users."${config.services.opendmarc.user}".extraGroups = [ "keys" ];
flakeCompat = import ../lib/flake-compat.nix;
flakes = builtins.foldl' (a: b: a // b) {} (map (n: (flakeCompat n).overlays) [
../flakes/backports
- ../flakes/libspf2
../flakes/openarc
../flakes/opendmarc
../flakes/peertube