git.iko.soy/typeable/stackage2nix
on master help sign in
Initial commit
commit1504d899e031b8f0128478950313054d18ad27ef authorDmitry Bushev <bushevdv@gmail.com> dateSun 23 Apr 2017, 17:44 (9 years ago)
9 files changed+88
.gitignore+1 LICENSE+26 README.md+3 Setup.hs+2 app/Main.hs+6 src/Lib.hs+6 stack.yaml+3 stack2nix.cabal+39 test/Spec.hs+2
.gitignorenew file+1
@@ -0,0 +1 @@
1+.stack-work
LICENSEnew file+26
@@ -0,0 +1,26 @@
1+Redistribution and use in source and binary forms, with or without
2+modification, are permitted provided that the following conditions are met:
3+
4+ * Redistributions of source code must retain the above copyright
5+ notice, this list of conditions and the following disclaimer.
6+
7+ * Redistributions in binary form must reproduce the above
8+ copyright notice, this list of conditions and the following
9+ disclaimer in the documentation and/or other materials provided
10+ with the distribution.
11+
12+ * Neither the name of Author name here nor the names of other
13+ contributors may be used to endorse or promote products derived
14+ from this software without specific prior written permission.
15+
16+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README.mdnew file+3
@@ -0,0 +1,3 @@
1+# stack2nix
2+
3+`cabal2nix` converts a single Stack file into a Nix build expression.
Setup.hsnew file+2
@@ -0,0 +1,2 @@
1+import Distribution.Simple
2+main = defaultMain
app/Main.hsnew file+6
@@ -0,0 +1,6 @@
1+module Main where
2+
3+import Lib
4+
5+main :: IO ()
6+main = someFunc
src/Lib.hsnew file+6
@@ -0,0 +1,6 @@
1+module Lib
2+ ( someFunc
3+ ) where
4+
5+someFunc :: IO ()
6+someFunc = putStrLn "someFunc"
stack.yamlnew file+3
@@ -0,0 +1,3 @@
1+resolver: lts-8.12
2+packages:
3+- '.'
stack2nix.cabalnew file+39
@@ -0,0 +1,39 @@
1+name: stack2nix
2+version: 0.1.0.0
3+synopsis: Convert Stack files into Nix build instructions.
4+homepage: https://github.com/4e6/stack2nix#readme
5+license: BSD3
6+license-file: LICENSE
7+author: Dmitry Bushev
8+maintainer: bushevdv@gmail.com
9+category: Distribution, Nix
10+build-type: Simple
11+extra-source-files: README.md
12+cabal-version: >=1.10
13+
14+library
15+ hs-source-dirs: src
16+ exposed-modules: Lib
17+ build-depends: base >= 4.7 && < 5
18+ default-language: Haskell2010
19+
20+executable stack2nix
21+ hs-source-dirs: app
22+ main-is: Main.hs
23+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
24+ build-depends: base
25+ , stack2nix
26+ default-language: Haskell2010
27+
28+test-suite spec
29+ type: exitcode-stdio-1.0
30+ hs-source-dirs: test
31+ main-is: Spec.hs
32+ build-depends: base
33+ , stack2nix
34+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
35+ default-language: Haskell2010
36+
37+source-repository head
38+ type: git
39+ location: https://github.com/4e6/stack2nix
test/Spec.hsnew file+2
@@ -0,0 +1,2 @@
1+main :: IO ()
2+main = putStrLn "Test suite not yet implemented"