aboutsummaryrefslogtreecommitdiff
path: root/flakes/libspf2
diff options
context:
space:
mode:
Diffstat (limited to 'flakes/libspf2')
-rw-r--r--flakes/libspf2/default.nix34
-rw-r--r--flakes/libspf2/flake.lock42
-rw-r--r--flakes/libspf2/flake.nix28
3 files changed, 0 insertions, 104 deletions
diff --git a/flakes/libspf2/default.nix b/flakes/libspf2/default.nix
deleted file mode 100644
index d22c738..0000000
--- a/flakes/libspf2/default.nix
+++ /dev/null
@@ -1,34 +0,0 @@
1{ fetchpatch, file, fetchurl, libnsl, stdenv, lib }:
2stdenv.mkDerivation rec {
3 pname = "libspf2";
4 version = "1.2.10";
5
6 patches = [
7 (fetchpatch {
8 name = "fix-variadic-macros.patch";
9 url = "https://github.com/shevek/libspf2/commit/5852828582f556e73751076ad092f72acf7fc8b6.patch";
10 sha256 = "00dqpcgjr9jy2qprgqv2qiyvq8y3wlz4yns9xzabf2064jzqh2ic";
11 })
12 ];
13 preConfigure = ''
14 sed -i -e "s@/usr/bin/file@${file}/bin/file@" ./configure
15 '';
16 configureFlags = [
17 "--enable-static"
18 ];
19 postInstall = ''
20 rm $out/bin/*_static
21 '';
22 src = fetchurl {
23 url = "https://www.libspf2.org/spf/${pname}-${version}.tar.gz";
24 sha256 = "1j91p0qiipzf89qxq4m1wqhdf01hpn1h5xj4djbs51z23bl3s7nr";
25 };
26
27 buildInputs = [ libnsl ];
28
29 meta = {
30 description = "Sender Policy Framework record checking library";
31 homepage = "https://www.libspf2.org/";
32 platforms = lib.platforms.linux;
33 };
34}
diff --git a/flakes/libspf2/flake.lock b/flakes/libspf2/flake.lock
deleted file mode 100644
index a278bc0..0000000
--- a/flakes/libspf2/flake.lock
+++ /dev/null
@@ -1,42 +0,0 @@
1{
2 "nodes": {
3 "flake-utils": {
4 "locked": {
5 "lastModified": 1609246779,
6 "narHash": "sha256-eq6ZXE/VWo3EMC65jmIT6H/rrUc9UWOWVujkzav025k=",
7 "owner": "numtide",
8 "repo": "flake-utils",
9 "rev": "08c7ad4a0844adc4a7f9f5bb3beae482e789afa4",
10 "type": "github"
11 },
12 "original": {
13 "owner": "numtide",
14 "repo": "flake-utils",
15 "type": "github"
16 }
17 },
18 "nixpkgs": {
19 "locked": {
20 "lastModified": 1597943282,
21 "narHash": "sha256-G/VQBlqO7YeFOSvn29RqdvABZxmQBtiRYVA6kjqWZ6o=",
22 "owner": "NixOS",
23 "repo": "nixpkgs",
24 "rev": "c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38",
25 "type": "github"
26 },
27 "original": {
28 "owner": "NixOS",
29 "repo": "nixpkgs",
30 "type": "github"
31 }
32 },
33 "root": {
34 "inputs": {
35 "flake-utils": "flake-utils",
36 "nixpkgs": "nixpkgs"
37 }
38 }
39 },
40 "root": "root",
41 "version": 7
42}
diff --git a/flakes/libspf2/flake.nix b/flakes/libspf2/flake.nix
deleted file mode 100644
index af1deea..0000000
--- a/flakes/libspf2/flake.nix
+++ /dev/null
@@ -1,28 +0,0 @@
1{
2 description = "Sender Policy Framework record checking library";
3
4 inputs.flake-utils.url = "github:numtide/flake-utils";
5 inputs.nixpkgs.url = "github:NixOS/nixpkgs";
6
7 outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
8 let
9 pkgs = import nixpkgs { inherit system; overlays = []; };
10 libspf2 = pkgs.callPackage ./. {};
11 in rec {
12 packages.libspf2 = libspf2;
13 defaultPackage = libspf2;
14 legacyPackages.libfspf2 = libspf2;
15 apps.libspf2 = flake-utils.lib.mkApp { drv = libspf2; name = "spfquery"; };
16 defaultApp = apps.libspf2;
17 checks.build = libspf2;
18 hydraJobs.build = libspf2;
19 }
20 ) // rec {
21 overlays = {
22 libspf2 = final: prev: {
23 libspf2 = self.defaultPackage."${final.system}";
24 };
25 };
26 overlay = overlays.libspf2;
27 };
28}