From 07685e0dfa5dab0c2f9059c5198af51490b6c1eb Mon Sep 17 00:00:00 2001 From: Daniel Firth <dan.firth@homotopic.tech> Date: Mon, 7 Nov 2022 17:25:12 +0000 Subject: [PATCH] saltine: init at 0.2.0.1 --- configuration.nix | 2 ++ manifest.dhall | 1 + overlay.nix | 2 ++ pkgs/saltine.nix | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 pkgs/saltine.nix diff --git a/configuration.nix b/configuration.nix index 667a18d8..8cb73b54 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,6 +4,8 @@ with pkgs.haskell.lib; final: prev: { + saltine = addPkgconfigDepend prev.saltine pkgs.libsodium; + libsodium = prev.callPackage ./pkgs/libsodium.nix { inherit (pkgs) libsodium; }; } diff --git a/manifest.dhall b/manifest.dhall index 702e8894..590847b6 100644 --- a/manifest.dhall +++ b/manifest.dhall @@ -493,6 +493,7 @@ in [ callHackage "Cabal" "3.8.1.0" , callHackage "safe-coloured-text-terminfo" "0.1.0.0" , callHackage "safe-coloured-text" "0.2.0.1" , callHackage "safe-exceptions" "0.1.7.3" + , callHackage "saltine" "0.2.0.1" , callHackage "scotty" "0.12" , callHackage "scientific" "0.3.7.0" , callHackage "sdl2" "2.5.3.3" diff --git a/overlay.nix b/overlay.nix index 9e9b0b54..e69e30cb 100644 --- a/overlay.nix +++ b/overlay.nix @@ -691,6 +691,8 @@ final: prev: with pkgs.haskell.lib; { safe-exceptions = prev.callPackage (./pkgs/safe-exceptions.nix) { }; + saltine = prev.callPackage (./pkgs/saltine.nix) { }; + scientific = prev.callPackage (./pkgs/scientific.nix) { }; scotty = prev.callPackage (./pkgs/scotty.nix) { }; diff --git a/pkgs/saltine.nix b/pkgs/saltine.nix new file mode 100644 index 00000000..f66679bb --- /dev/null +++ b/pkgs/saltine.nix @@ -0,0 +1,34 @@ +{ mkDerivation, base, bytestring, criterion, deepseq, hashable, lib +, libsodium, profunctors, QuickCheck, semigroups, test-framework +, test-framework-quickcheck2, text +}: +mkDerivation { + pname = "saltine"; + version = "0.2.0.1"; + sha256 = "ce6867a08a308bc5155cb4c5a146837cf6c5e056dd0d0151f9f0838b2eed2ea0"; + isLibrary = true; + isExecutable = false; + enableSeparateDataOutput = false; + libraryHaskellDepends = [ + base bytestring deepseq hashable profunctors text + ]; + libraryPkgconfigDepends = [ libsodium ]; + testHaskellDepends = [ + base bytestring QuickCheck semigroups test-framework + test-framework-quickcheck2 text + ]; + benchmarkHaskellDepends = [ + base bytestring criterion deepseq text + ]; + benchmarkSystemDepends = [ libsodium ]; + enableLibraryProfiling = false; + enableExecutableProfiling = false; + doHaddock = false; + jailbreak = true; + doCheck = false; + doBenchmark = false; + hyperlinkSource = false; + description = "Cryptography that's easy to digest (NaCl/libsodium bindings)"; + license = lib.licenses.mit; + broken = false; +} \ No newline at end of file -- GitLab