-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from futrnostr/rebuild
Rebuild
- Loading branch information
Showing
68 changed files
with
2,180 additions
and
3,712 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
import Distribution.Simple | ||
main = defaultMain | ||
import Distribution.Simple.LocalBuildInfo | ||
import Distribution.Simple.Setup | ||
import System.Process | ||
import System.Exit | ||
import System.Directory | ||
|
||
main :: IO () | ||
main = defaultMainWithHooks simpleUserHooks { | ||
--hookedPrograms = [simpleProgram "Setup libsec256k1"], | ||
preConf = \args flags -> do | ||
let repoDir = "secp256k1" | ||
repoExists <- doesDirectoryExist repoDir | ||
unless repoExists $ | ||
callProcess "git" ["clone", "https://github.com/bitcoin-core/secp256k1.git"] | ||
|
||
setCurrentDirectory repoDir | ||
|
||
callProcess "./autogen.sh" [] | ||
let prefix = "../vendor/secp256k1" | ||
callProcess "./configure" | ||
[ "--prefix=" ++ prefix | ||
, "--enable-module-schnorrsig" | ||
, "--enable-module-extrakeys" | ||
, "--enable-module-ecdh" | ||
, "--enable-experimental" | ||
, "--enable-module-recovery" | ||
] | ||
|
||
callProcess "make" [] | ||
callProcess "make" ["install"] | ||
|
||
setCurrentDirectory ".." | ||
|
||
let pkgConfigPath = "PKG_CONFIG_PATH" | ||
pkgConfigValue <- lookupEnv pkgConfigPath | ||
let newPkgConfigValue = case pkgConfigValue of | ||
Nothing -> prefix ++ "/lib/pkgconfig" | ||
Just val -> prefix ++ "/lib/pkgconfig:" ++ val | ||
setEnv pkgConfigPath newPkgConfigValue | ||
|
||
return (Nothing, []) | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
packages: | ||
./ | ||
|
||
package nanovg | ||
flags: +stb_truetype | ||
source-repository-package | ||
type: git | ||
location: https://github.com/haskell-bitcoin/libsecp256k1-haskell | ||
|
||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/prolic/HsQML/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,59 @@ | ||
cabal-version: 1.12 | ||
|
||
-- This file has been generated from package.yaml by hpack version 0.34.4. | ||
-- | ||
-- see: https://github.com/sol/hpack | ||
|
||
name: futr | ||
version: 0.1.0.0 | ||
homepage: https://github.com/prolic/futr#readme | ||
author: Sascha-Oliver Prolic | ||
maintainer: [email protected] | ||
copyright: 2022 Sascha-Oliver Prolic | ||
license: MIT | ||
copyright: 2024 Sascha-Oliver Prolic | ||
license: LGPL-3 | ||
license-file: LICENSE | ||
build-type: Simple | ||
extra-source-files: | ||
README.md | ||
|
||
executable futr | ||
main-is: Main.hs | ||
other-modules: | ||
AppTypes | ||
DebugJSON | ||
Futr | ||
Helpers | ||
Nostr.Event | ||
Nostr.Filter | ||
Nostr.Keys | ||
Nostr.Kind | ||
Nostr.Profile | ||
Nostr.Relay | ||
Nostr.RelayConnection | ||
Nostr.RelayPool | ||
Nostr.Request | ||
Nostr.Response | ||
UI | ||
UIHelpers | ||
Widgets.BackupKeys | ||
Widgets.EditProfile | ||
Widgets.KeyManagement | ||
Widgets.PostDetails | ||
Widgets.Profile | ||
Widgets.ProfileImage | ||
Widgets.RelayManagement | ||
Widgets.Setup | ||
Widgets.ViewPosts | ||
Paths_futr | ||
hs-source-dirs: | ||
src | ||
ghc-options: -fwarn-incomplete-patterns -threaded | ||
ghc-options: -threaded -Wall -Wcompat -Wincomplete-uni-patterns -Wincomplete-record-updates -Werror | ||
extra-lib-dirs: | ||
/usr/local/lib | ||
extra-libraries: | ||
secp256k1 | ||
build-depends: | ||
DRBG >=0.5.5 && <0.6 | ||
, JuicyPixels | ||
, aeson | ||
, base >=4.9 && <5 | ||
, base16 >=0.3.0.1 | ||
aeson | ||
, base | ||
, base16-bytestring | ||
, basement | ||
, bytestring >=0.10.8 && <0.11 | ||
, bytestring-to-vector | ||
, connection | ||
, bech32 | ||
, binary | ||
, bytestring | ||
, containers | ||
, cryptohash-sha256 | ||
, data-default | ||
, datetime | ||
, directory | ||
, filepath | ||
, http-client | ||
, entropy | ||
, haskoin-core | ||
, hsqml | ||
, lens | ||
, libsecp256k1 | ||
, modern-uri | ||
, monomer | ||
, mtl | ||
, network | ||
, parallel-io | ||
, req | ||
, secp256k1-schnorr | ||
, random | ||
, secp256k1-haskell | ||
, stm | ||
, text | ||
, text-show | ||
, transformers | ||
, utf8-string | ||
, time | ||
, vector | ||
, websockets | ||
, wreq | ||
, wuss | ||
other-modules: | ||
Nostr.Keys | ||
Nostr.Kind | ||
Nostr.Profile | ||
Nostr.Relay | ||
Paths_futr | ||
data-dir: | ||
resources | ||
data-files: | ||
config.yaml qml/**/*.qml qml/qmlmodules qml/content/qmldir | ||
default-language: Haskell2010 | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.