mirror of https://github.com/voidlizard/hbs2
libsodium-1.0.19
This commit is contained in:
parent
5c058ee23f
commit
cec6ff3c41
203
flake.lock
203
flake.lock
|
@ -23,51 +23,6 @@
|
||||||
"url": "https://git.hbs2.net/5xrwbTzzweS9yeJQnrrUY9gQJfhJf84pbyHhF2MMmSft"
|
"url": "https://git.hbs2.net/5xrwbTzzweS9yeJQnrrUY9gQJfhJf84pbyHhF2MMmSft"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"db-pipe_2": {
|
|
||||||
"inputs": {
|
|
||||||
"haskell-flake-utils": [
|
|
||||||
"lsm",
|
|
||||||
"haskell-flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"lsm",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1713519608,
|
|
||||||
"narHash": "sha256-MBBsIdK1am/usgdBYr6ZoKm1pwv7u9ujS/tiNRrn0m8=",
|
|
||||||
"ref": "refs/heads/master",
|
|
||||||
"rev": "b755977dd737ff367c7eb19efd9e273d1bd37ed7",
|
|
||||||
"revCount": 8,
|
|
||||||
"type": "git",
|
|
||||||
"url": "http://git.hbs2/5xrwbTzzweS9yeJQnrrUY9gQJfhJf84pbyHhF2MMmSft"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "http://git.hbs2/5xrwbTzzweS9yeJQnrrUY9gQJfhJf84pbyHhF2MMmSft"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fixme": {
|
|
||||||
"inputs": {
|
|
||||||
"haskell-flake-utils": "haskell-flake-utils_2",
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"suckless-conf": "suckless-conf"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1714707469,
|
|
||||||
"narHash": "sha256-uL3j7NmCWADN0rIyVr3bv0JFMPgYgrnb1wiJW5tZ9jU=",
|
|
||||||
"owner": "voidlizard",
|
|
||||||
"repo": "fixme",
|
|
||||||
"rev": "51485aa169c7b2040b6e2b8d096f38ed77146482",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "voidlizard",
|
|
||||||
"repo": "fixme",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
|
@ -86,36 +41,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1644229661,
|
|
||||||
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1644229661,
|
|
||||||
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fuzzy": {
|
"fuzzy": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"haskell-flake-utils": [
|
"haskell-flake-utils": [
|
||||||
|
@ -160,42 +85,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"haskell-flake-utils_2": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1672412555,
|
|
||||||
"narHash": "sha256-Kaa8F7nQFR3KuS6Y9WRUxeJeZlp6CCubyrRfmiEsW4k=",
|
|
||||||
"owner": "ivanovs-4",
|
|
||||||
"repo": "haskell-flake-utils",
|
|
||||||
"rev": "896219e5bde6efac72198550454e9dd9b5ed9ac9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ivanovs-4",
|
|
||||||
"repo": "haskell-flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"haskell-flake-utils_3": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1672412555,
|
|
||||||
"narHash": "sha256-Kaa8F7nQFR3KuS6Y9WRUxeJeZlp6CCubyrRfmiEsW4k=",
|
|
||||||
"owner": "ivanovs-4",
|
|
||||||
"repo": "haskell-flake-utils",
|
|
||||||
"rev": "896219e5bde6efac72198550454e9dd9b5ed9ac9",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "ivanovs-4",
|
|
||||||
"repo": "haskell-flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hspup": {
|
"hspup": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"haskell-flake-utils": [
|
"haskell-flake-utils": [
|
||||||
|
@ -219,42 +108,32 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lsm": {
|
"libsodium": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"db-pipe": "db-pipe_2",
|
"nixpkgs": "nixpkgs"
|
||||||
"fixme": "fixme",
|
|
||||||
"haskell-flake-utils": [
|
|
||||||
"haskell-flake-utils"
|
|
||||||
],
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715418443,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-uhc9bf6myVz0Nx8Aoyc6/03FBQVyMqa78ByZzlrvKvY=",
|
"narHash": "sha256-lpDKsdOtVA2uudufrZM2yOKyeDZjWi/8O6kJnzq45H0=",
|
||||||
"ref": "refs/heads/master",
|
"path": "./miscellaneous/libsodium",
|
||||||
"rev": "e9aab0bcb79f4c811b5fb795f878b38874218809",
|
"type": "path"
|
||||||
"revCount": 57,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.hbs2.net/5BCaH95cWsVKBmWaDNLWQr2umxzzT5kqRRKNTm2J15Ls"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"path": "./miscellaneous/libsodium",
|
||||||
"url": "https://git.hbs2.net/5BCaH95cWsVKBmWaDNLWQr2umxzzT5kqRRKNTm2J15Ls"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1697009197,
|
"lastModified": 1728093190,
|
||||||
"narHash": "sha256-viVRhBTFT8fPJTb1N3brQIpFZnttmwo3JVKNuWRVc3s=",
|
"narHash": "sha256-CAZF2NRuHmqTtRTNAruWpHA43Gg2UvuCNEIzabP0l6M=",
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "01441e14af5e29c9d27ace398e6dd0b293e25a54",
|
"rev": "e2f08f4d8b3ecb5cf5c9fd9cb2d53bb3c71807da",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "nixos",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixpkgs-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
@ -283,53 +162,26 @@
|
||||||
"fuzzy": "fuzzy",
|
"fuzzy": "fuzzy",
|
||||||
"haskell-flake-utils": "haskell-flake-utils",
|
"haskell-flake-utils": "haskell-flake-utils",
|
||||||
"hspup": "hspup",
|
"hspup": "hspup",
|
||||||
"lsm": "lsm",
|
"libsodium": "libsodium",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"saltine": "saltine",
|
"saltine": "saltine",
|
||||||
"suckless-conf": "suckless-conf_2"
|
"suckless-conf": "suckless-conf"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"saltine": {
|
"saltine": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1651348885,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-0guvfkdOrofElDildQWE8QDwh+T/u2WY3HVYmOu4g3w=",
|
"narHash": "sha256-xiHTxEXKTwS4Q35/LZi4TYCkzvoXtX7AjWsUcWT6yo0=",
|
||||||
"owner": "tel",
|
"path": "./miscellaneous/saltine",
|
||||||
"repo": "saltine",
|
"type": "path"
|
||||||
"rev": "3d3a54cf46f78b71b4b55653482fb6f4cee6b77d",
|
|
||||||
"type": "github"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "tel",
|
"path": "./miscellaneous/saltine",
|
||||||
"repo": "saltine",
|
"type": "path"
|
||||||
"rev": "3d3a54cf46f78b71b4b55653482fb6f4cee6b77d",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"suckless-conf": {
|
"suckless-conf": {
|
||||||
"inputs": {
|
|
||||||
"haskell-flake-utils": "haskell-flake-utils_3",
|
|
||||||
"nixpkgs": [
|
|
||||||
"lsm",
|
|
||||||
"fixme",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1697354514,
|
|
||||||
"narHash": "sha256-5doedGj2QU4vPuw1VZor1GGEJTxu0zFeO/PsybFIcn8=",
|
|
||||||
"owner": "voidlizard",
|
|
||||||
"repo": "suckless-conf",
|
|
||||||
"rev": "3f87278bc10ac4f14a6d9d2c75cbbed228509129",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "voidlizard",
|
|
||||||
"repo": "suckless-conf",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"suckless-conf_2": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fuzzy": [
|
"fuzzy": [
|
||||||
"fuzzy"
|
"fuzzy"
|
||||||
|
@ -342,17 +194,14 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1727200798,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-esabG5zoApNLbirx0mCj1+3ZPFU9Ckod9wSn9MHc0mo=",
|
"narHash": "sha256-esabG5zoApNLbirx0mCj1+3ZPFU9Ckod9wSn9MHc0mo=",
|
||||||
"ref": "refs/heads/master",
|
"path": "./miscellaneous/suckless-conf",
|
||||||
"rev": "ff6f1a2e053005a52af5c7375fb66e8bb89bce2d",
|
"type": "path"
|
||||||
"revCount": 40,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.hbs2.net/JAuk1UJzZfbDGKVazSQU5yYQ3NGfk4gVeZzBCduf5TgQ"
|
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"path": "./miscellaneous/suckless-conf",
|
||||||
"url": "https://git.hbs2.net/JAuk1UJzZfbDGKVazSQU5yYQ3NGfk4gVeZzBCduf5TgQ"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|
14
flake.nix
14
flake.nix
|
@ -14,8 +14,7 @@ inputs = {
|
||||||
hspup.inputs.nixpkgs.follows = "nixpkgs";
|
hspup.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
hspup.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
hspup.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
||||||
|
|
||||||
suckless-conf.url = "git+https://git.hbs2.net/JAuk1UJzZfbDGKVazSQU5yYQ3NGfk4gVeZzBCduf5TgQ";
|
suckless-conf.url = "path:./miscellaneous/suckless-conf";
|
||||||
|
|
||||||
suckless-conf.inputs.nixpkgs.follows = "nixpkgs";
|
suckless-conf.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
suckless-conf.inputs.fuzzy.follows = "fuzzy";
|
suckless-conf.inputs.fuzzy.follows = "fuzzy";
|
||||||
suckless-conf.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
suckless-conf.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
||||||
|
@ -24,20 +23,20 @@ inputs = {
|
||||||
db-pipe.inputs.nixpkgs.follows = "nixpkgs";
|
db-pipe.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
db-pipe.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
db-pipe.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
||||||
|
|
||||||
lsm.url = "git+https://git.hbs2.net/5BCaH95cWsVKBmWaDNLWQr2umxzzT5kqRRKNTm2J15Ls";
|
|
||||||
lsm.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
lsm.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
|
||||||
|
|
||||||
# fuzzy.url = "git+file:/home/iv/haskell/p2p/hex-offgrid/fuzzy-parse"; # tmp
|
# fuzzy.url = "git+file:/home/iv/haskell/p2p/hex-offgrid/fuzzy-parse"; # tmp
|
||||||
fuzzy.url = "git+https://git.hbs2.net/GmcLB9gEPT4tbx9eyQiECwsu8oPyEh6qKEpQDtyBWVPA";
|
fuzzy.url = "git+https://git.hbs2.net/GmcLB9gEPT4tbx9eyQiECwsu8oPyEh6qKEpQDtyBWVPA";
|
||||||
fuzzy.inputs.nixpkgs.follows = "nixpkgs";
|
fuzzy.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
fuzzy.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
fuzzy.inputs.haskell-flake-utils.follows = "haskell-flake-utils";
|
||||||
|
|
||||||
saltine = {
|
saltine = {
|
||||||
url = "github:tel/saltine/3d3a54cf46f78b71b4b55653482fb6f4cee6b77d";
|
url = "path:./miscellaneous/saltine";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
libsodium = {
|
||||||
|
url = "path:./miscellaneous/libsodium";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
||||||
|
@ -168,6 +167,7 @@ outputs = { self, nixpkgs, flake-utils, ... }@inputs:
|
||||||
++
|
++
|
||||||
[ pkgs.pkg-config
|
[ pkgs.pkg-config
|
||||||
inputs.hspup.packages.${pkgs.system}.default
|
inputs.hspup.packages.${pkgs.system}.default
|
||||||
|
inputs.libsodium.defaultPackage.${pkgs.system}
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
description = "Flake for libsodium 1.0.19-RELEASE";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs }: {
|
||||||
|
packages = nixpkgs.lib.attrsets.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
version = "1.0.19";
|
||||||
|
in rec {
|
||||||
|
libsodium = pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "libsodium";
|
||||||
|
version = version;
|
||||||
|
|
||||||
|
src = ./source;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgs.autoreconfHook ];
|
||||||
|
buildInputs = [ pkgs.libtool pkgs.pkg-config ];
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
./configure --prefix=$out
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = "make";
|
||||||
|
|
||||||
|
installPhase = "make install";
|
||||||
|
|
||||||
|
meta = with pkgs.lib; {
|
||||||
|
description = "A modern, portable, easy to use crypto library (version 1.0.19-RELEASE)";
|
||||||
|
homepage = "https://libsodium.org/";
|
||||||
|
license = licenses.isc;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ name "voidlizard" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
# Указываем пакет по умолчанию
|
||||||
|
defaultPackage.x86_64-linux = self.packages.x86_64-linux.libsodium;
|
||||||
|
defaultPackage.aarch64-linux = self.packages.aarch64-linux.libsodium;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue