git.iko.soy/typeable/cabal2nix
on master help sign in
initial version of the nixos-types library
commit502e91b6a92fe81fe3e2cdf3f0bb434dc1b8f0b5 authorPeter Simons <simons@cryp.to> dateTue 23 Aug 2011, 14:59 (15 years ago)
4 files changed+78
.gitignore+3 LICENSE+30 Setup.hs+15 nixos-types.cabal+30
.gitignorenew file+3
@@ -0,0 +1,3 @@
1+# ignore build Cabal build files
2+
3+/dist/*
LICENSEnew file+30
@@ -0,0 +1,30 @@
1+Redistribution and use in source and binary forms, with or
2+without modification, are permitted provided that the
3+following conditions are met:
4+
5+ * Redistributions of source code must retain the above
6+ copyright notice, this list of conditions and the
7+ following disclaimer.
8+
9+ * Redistributions in binary form must reproduce the above
10+ copyright notice, this list of conditions and the
11+ following disclaimer in the documentation and/or other
12+ materials provided with the distribution.
13+
14+ * The names of its contributors may not be used to endorse
15+ or promote products derived from this software without
16+ specific prior written permission.
17+
18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19+CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29+OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Setup.hsnew file+15
@@ -0,0 +1,15 @@
1+module Main ( main ) where
2+
3+import Distribution.Simple
4+import Distribution.Simple.LocalBuildInfo ( withPrograms )
5+import Distribution.Simple.Program ( userSpecifyArgs )
6+
7+main :: IO ()
8+main = defaultMainWithHooks $
9+ simpleUserHooks `modify_haddockHook` \oldHH pkg lbi hooks flags ->
10+ (\lbi' -> oldHH pkg lbi' hooks flags) $
11+ lbi `modify_withPrograms` \oldWP ->
12+ userSpecifyArgs "haddock" ["--optghc=-D__HADDOCK__"] oldWP
13+ where
14+ modify_haddockHook hooks f = hooks { haddockHook = f (haddockHook hooks) }
15+ modify_withPrograms lbi f = lbi { withPrograms = f (withPrograms lbi) }
nixos-types.cabalnew file+30
@@ -0,0 +1,30 @@
1+Name: nixos-types
2+Version: 1.0
3+Copyright: Peter Simons, Andres Loeh
4+License: BSD3
5+License-File: LICENSE
6+Author: Peter Simons <simons@cryp.to>, Andres Loeh <mail@andres-loeh.de>
7+Maintainer: Nix Developers <nix-dev@cs.uu.nl>
8+Homepage: http://github.com/haskell4nix/nixos-types
9+Category: Distribution
10+Synopsis: Data types representing the Nix language
11+Cabal-Version: >= 1.8
12+Build-Type: Custom
13+Tested-With: GHC == 6.12.3, GHC == 7.0.4, GHC == 7.2.1
14+Description:
15+ This library provides a collection of data types that represent the
16+ Nix language <http://nixos.org/>.
17+
18+Source-Repository head
19+ Type: git
20+ Location: git://github.com/haskell4nix/nixos-types.git
21+
22+Library
23+ Build-Depends: base >= 3 && < 5, regex-posix, pretty, Cabal >= 1.8
24+ hs-source-dirs: src
25+ Extensions: PatternGuards, CPP
26+ Ghc-Options: -Wall
27+ Exposed-Modules: Distribution.NixOS.Derivation.Cabal
28+ Distribution.NixOS.Derivation.License
29+ Distribution.NixOS.Derivation.Meta
30+ other-modules: Distribution.NixOS.PrettyPrinting