-
-
Save dminuoso/5f0cc74b2a2b18729dd906b7fdfe386e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compass-radius | |
version: 0.1 | |
synopsis: Remote Authentication Dial In User Service (RADIUS) | |
description: Serialization and deserialization of RADIUS packages. | |
homepage: https://gitlab.com/dminuoso/compass-radius | |
license: BSD3 | |
license-file: LICENSE | |
author: | |
maintainer: Victor Nawothnig (victor.nawothnig@gmail.com) | |
copyright: | |
category: Network | |
build-type: Simple | |
extra-source-files: README.md | |
cabal-version: 2.0 | |
library | |
hs-source-dirs: src | |
exposed-modules: Network.RADIUS.Encoding | |
, Network.RADIUS.Types | |
, Network.RADIUS.Crypto | |
, Network.RADIUS.Cisco | |
build-depends: base >= 4.7 && < 5 | |
, cereal | |
, bytestring | |
, cryptonite | |
, iproute | |
, memory | |
default-language: Haskell2010 | |
ghc-options: -Wall | |
test-suite test | |
default-language: Haskell2010 | |
type: exitcode-stdio-1.0 | |
hs-source-dirs: test | |
main-is: test.hs | |
other-modules: Arbitrary | |
build-depends: | |
base >= 4 && < 5 | |
, tasty >= 0.7 | |
, QuickCheck | |
, cereal | |
, tasty-quickcheck | |
, bytestring-arbitrary | |
, compass-radius | |
, bytestring | |
, cryptonite | |
, memory | |
, hexquote | |
, pretty-hex | |
source-repository head | |
type: git | |
location: https://gitlab.com/dminuoso/compass-radius |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ compiler ? "ghc863" }: | |
let | |
config = { | |
packageOverrides = pkgs: rec { | |
haskellPackages = pkgs.haskellPackages.override { | |
overrides = self: super: rec { | |
hexquote = self.callPackage ./hexquote.nix { }; | |
doctest = pkgs.haskell.lib.dontCheck (self.callPackage ./doctest.nix { }); | |
}; | |
}; | |
}; | |
}; | |
pkgs = import <nixpkgs> { inherit config; }; | |
in | |
pkgs.haskell.packages.${compiler}.callCabal2nix "compass-radius" ./. { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ mkDerivation, base, bytestring, containers, fetchgit, parsec | |
, stdenv, template-haskell | |
}: | |
mkDerivation { | |
pname = "hexquote"; | |
version = "0.1"; | |
src = fetchgit { | |
url = "https://github.com/dminuoso/hexquote.git"; | |
sha256 = "0lf2bxhd4hyls057wgmlgdagav7y5b9d54pqv6i0msjjlyx6kpw3"; | |
rev = "5417d47b33c4771d64fb7d42979200ccc2771523"; | |
fetchSubmodules = true; | |
}; | |
libraryHaskellDepends = [ | |
base bytestring containers parsec template-haskell | |
]; | |
description = "Hexadecimal ByteString literals, with placeholders that bind variables"; | |
license = stdenv.lib.licenses.bsd3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment