]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Remove libspf2 flake for stock one
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 30 Aug 2021 21:14:00 +0000 (23:14 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 29 Sep 2021 22:42:52 +0000 (00:42 +0200)
flakes/libspf2/default.nix [deleted file]
flakes/libspf2/flake.lock [deleted file]
flakes/libspf2/flake.nix [deleted file]
flakes/opendmarc/flake.lock
flakes/opendmarc/flake.nix
flakes/private/opendmarc/flake.lock
flakes/private/opendmarc/flake.nix
overlays/default.nix

diff --git a/flakes/libspf2/default.nix b/flakes/libspf2/default.nix
deleted file mode 100644 (file)
index d22c738..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-{ 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;
-  };
-}
diff --git a/flakes/libspf2/flake.lock b/flakes/libspf2/flake.lock
deleted file mode 100644 (file)
index a278bc0..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-{
-  "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
-}
diff --git a/flakes/libspf2/flake.nix b/flakes/libspf2/flake.nix
deleted file mode 100644 (file)
index af1deea..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-{
-  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;
-  };
-}
index 92551affc093b0e6d5488435797906954a9fb4dd..4503c79ccffdb9ff23b05290221acce6c8c2e91f 100644 (file)
         "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",
@@ -88,7 +50,6 @@
     "root": {
       "inputs": {
         "flake-utils": "flake-utils",
-        "libspf2": "libspf2",
         "myuids": "myuids",
         "nixpkgs": "nixpkgs"
       }
index 469cf74f24b3e09e3e187c465a73604718512812..f1877b63721a70363f71c3bd65ef339f74e903f8 100644 (file)
@@ -6,18 +6,12 @@
     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;
index 24df937b2fb9bce9c8303c5ccfd057bf47278412..33e00a4e2c9b92f09bbea0c7a8cb3caf7906dd0f 100644 (file)
         "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"
       }
     }
index 3d500a29212a136f4b664834da97db2c4eeb022c..ae96c30721f01adff1227ac220734c625032ebbf 100644 (file)
@@ -5,11 +5,8 @@
   };
   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" ];
index b01dd8152c3616335edc92639779dcc30f555450..1f1528c75d12394342bd0381cc67197d5e7f5dd7 100644 (file)
@@ -2,7 +2,6 @@ let
   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