Skip to content

Commit

Permalink
nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissound committed Jun 1, 2019
1 parent 55bf986 commit 21429e6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc864" }: nixpkgs.pkgs.haskell.packages.${compiler}.callPackage ./sodium.nix { }
19 changes: 19 additions & 0 deletions sodium.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ mkDerivation, aeson, base, bytestring, directory, filepath, hpack
, MissingH, optparse-applicative, pretty-simple, safe, split
, stdenv, stm, string-conversions, text, thyme, time
}:
mkDerivation {
pname = "sodiumSierraStrawberry";
version = "0.1.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
libraryToolDepends = [ hpack ];
executableHaskellDepends = [
aeson base bytestring directory filepath MissingH
optparse-applicative pretty-simple safe split stm
string-conversions text thyme time
];
preConfigure = "hpack";
license = stdenv.lib.licenses.bsd3;
}
11 changes: 6 additions & 5 deletions sodiumSierraStrawberry.cabal
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.1.
-- This file has been generated from package.static.yaml by hpack version 0.28.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 88935acecc62ff182c52a90b6345d80caf254218cb349bf06efaa84f3ab5bb72
-- hash: dc5d80120403b39adcd93487e3eb7b084fcc8abb48bc9c23eaaa9dbc7c48cb06

cabal-version: >= 1.10
name: sodiumSierraStrawberry
version: 0.1.0.0
author: Chris Stryczynski
Expand All @@ -23,7 +22,9 @@ executable sodiumSierraStrawberry
hs-source-dirs:
src
default-extensions: LambdaCase
ghc-options: -main-is Prompt
ghc-options: -Wall -O2 -static -threaded -main-is Prompt
cc-options: -static
ld-options: -static -pthread
build-depends:
MissingH
, aeson
Expand Down
1 change: 1 addition & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ extra-package-dbs: []
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
nix:
enable: true
packages:
- glibc.static
- gmp5.static

0 comments on commit 21429e6

Please sign in to comment.