diff --git a/pkgs/development/libraries/haskell/atomic-primops/default.nix b/pkgs/development/libraries/haskell/atomic-primops/default.nix new file mode 100644 index 000000000000..4b37ea84d588 --- /dev/null +++ b/pkgs/development/libraries/haskell/atomic-primops/default.nix @@ -0,0 +1,14 @@ +{ cabal, Cabal, primitive }: + +cabal.mkDerivation (self: { + pname = "atomic-primops"; + version = "0.1.0.2"; + sha256 = "1qjm97hi2wr658yk7f5cfppizaawmrkvs2q7qzq00h14fr71xxca"; + buildDepends = [ Cabal primitive ]; + meta = { + homepage = "https://github.com/rrnewton/haskell-lockfree-queue/wiki"; + description = "A safe approach to CAS and other atomic ops in Haskell"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index cff0c664d75e..dba94cdc9750 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -497,6 +497,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); async_2_0_1_4 = callPackage ../development/libraries/haskell/async/2.0.1.4.nix {}; async = self.async_2_0_1_4; + atomicPrimops = callPackage ../development/libraries/haskell/atomic-primops {}; + attempt = callPackage ../development/libraries/haskell/attempt {}; attoparsec = callPackage ../development/libraries/haskell/attoparsec {};