aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorÓscar Nájera <hi@oscarnajera.com>2021-06-03 18:11:37 +0200
committerÓscar Nájera <hi@oscarnajera.com>2021-06-03 18:11:37 +0200
commitfd8a3e5cc66ecff4db7002073ea3f7171f68e830 (patch)
tree7afc2b3c4dd13d97b1f3c9ab4ed36e4457fda8b8
parentffbac3868a34e06d80a1f88baaa451ce7823adfe (diff)
downloaddotfiles-fd8a3e5cc66ecff4db7002073ea3f7171f68e830.tar.gz
dotfiles-fd8a3e5cc66ecff4db7002073ea3f7171f68e830.tar.bz2
dotfiles-fd8a3e5cc66ecff4db7002073ea3f7171f68e830.zip
install cabal config
-rw-r--r--home-dots/dot-cabal/config233
-rwxr-xr-xinstall.scm9
2 files changed, 239 insertions, 3 deletions
diff --git a/home-dots/dot-cabal/config b/home-dots/dot-cabal/config
new file mode 100644
index 0000000..9972291
--- /dev/null
+++ b/home-dots/dot-cabal/config
@@ -0,0 +1,233 @@
+-- This is the configuration file for the 'cabal' command line tool.
+--
+-- The available configuration options are listed below.
+-- Some of them have default values listed.
+--
+-- Lines (like this one) beginning with '--' are comments.
+-- Be careful with spaces and indentation because they are
+-- used to indicate layout for nested sections.
+--
+-- This config file was generated using the following versions
+-- of Cabal and cabal-install:
+-- Cabal library version: 3.4.0.0
+-- cabal-install version: 3.4.0.0
+
+
+repository hackage.haskell.org
+ url: http://hackage.haskell.org/
+ -- secure: True
+ -- root-keys:
+ -- key-threshold: 3
+
+-- default-user-config:
+-- ignore-expiry: False
+-- http-transport:
+-- nix: False
+-- local-no-index-repo:
+remote-repo-cache: /home/titan/.cabal/packages
+-- logs-dir: /home/titan/.cabal/logs
+world-file: /home/titan/.cabal/world
+-- store-dir:
+-- active-repositories:
+-- verbose: 1
+-- compiler: ghc
+-- cabal-file:
+-- with-compiler:
+-- with-hc-pkg:
+-- program-prefix:
+-- program-suffix:
+-- library-vanilla: True
+-- library-profiling:
+-- shared:
+-- static:
+-- executable-dynamic: False
+-- executable-static: False
+-- profiling:
+-- executable-profiling:
+-- profiling-detail:
+-- library-profiling-detail:
+-- optimization: True
+-- debug-info: False
+-- library-for-ghci:
+-- split-sections: False
+-- split-objs: False
+-- executable-stripping:
+-- library-stripping:
+-- configure-option:
+-- user-install: True
+-- package-db:
+-- flags:
+-- extra-include-dirs:
+-- deterministic:
+-- cid:
+-- extra-lib-dirs:
+-- extra-framework-dirs:
+extra-prog-path: /home/titan/.cabal/bin
+-- instantiate-with:
+-- tests: False
+-- coverage: False
+-- library-coverage:
+-- exact-configuration: False
+-- benchmarks: False
+-- relocatable: False
+-- response-files:
+-- allow-depending-on-private-libs:
+-- cabal-lib-version:
+-- constraint:
+-- preference:
+-- solver: modular
+-- allow-older: False
+-- allow-newer: False
+-- write-ghc-environment-files:
+-- documentation: False
+-- doc-index-file: $datadir/doc/$arch-$os-$compiler/index.html
+-- target-package-db:
+-- max-backjumps: 4000
+-- reorder-goals: False
+-- count-conflicts: True
+-- fine-grained-conflicts: True
+-- minimize-conflict-set: False
+-- independent-goals: False
+-- shadow-installed-packages: False
+-- strong-flags: False
+-- allow-boot-library-installs: False
+-- reject-unconstrained-dependencies: none
+-- reinstall: False
+-- avoid-reinstalls: False
+-- force-reinstalls: False
+-- upgrade-dependencies: False
+-- index-state:
+-- root-cmd:
+-- symlink-bindir:
+build-summary: /home/titan/.cabal/logs/build.log
+-- build-log:
+remote-build-reporting: none
+-- report-planning-failure: False
+-- per-component: True
+-- one-shot: False
+-- run-tests:
+jobs: $ncpus
+-- keep-going: False
+-- offline: False
+-- lib: False
+-- package-env:
+-- overwrite-policy:
+-- install-method:
+installdir: /home/titan/.cabal/bin
+-- username:
+-- password:
+-- password-command:
+-- builddir:
+
+haddock
+ -- keep-temp-files: False
+ -- hoogle: False
+ -- html: False
+ -- html-location:
+ -- executables: False
+ -- tests: False
+ -- benchmarks: False
+ -- foreign-libraries: False
+ -- all:
+ -- internal: False
+ -- css:
+ -- hyperlink-source: False
+ -- quickjump: False
+ -- hscolour-css:
+ -- contents-location:
+
+init
+ -- interactive: False
+ -- cabal-version: 2.4
+ -- license:
+ -- tests:
+ -- test-dir:
+ -- language: Haskell2010
+ -- application-dir: app
+ -- source-dir: src
+
+install-dirs user
+ -- prefix: /home/titan/.cabal
+ -- bindir: $prefix/bin
+ -- libdir: $prefix/lib
+ -- libsubdir: $abi/$libname
+ -- dynlibdir: $libdir/$abi
+ -- libexecdir: $prefix/libexec
+ -- libexecsubdir: $abi/$pkgid
+ -- datadir: $prefix/share
+ -- datasubdir: $abi/$pkgid
+ -- docdir: $datadir/doc/$abi/$pkgid
+ -- htmldir: $docdir/html
+ -- haddockdir: $htmldir
+ -- sysconfdir: $prefix/etc
+
+install-dirs global
+ -- prefix: /usr/local
+ -- bindir: $prefix/bin
+ -- libdir: $prefix/lib
+ -- libsubdir: $abi/$libname
+ -- dynlibdir: $libdir/$abi
+ -- libexecdir: $prefix/libexec
+ -- libexecsubdir: $abi/$pkgid
+ -- datadir: $prefix/share
+ -- datasubdir: $abi/$pkgid
+ -- docdir: $datadir/doc/$abi/$pkgid
+ -- htmldir: $docdir/html
+ -- haddockdir: $htmldir
+ -- sysconfdir: $prefix/etc
+
+program-locations
+ -- alex-location:
+ -- ar-location:
+ -- c2hs-location:
+ -- cpphs-location:
+ -- doctest-location:
+ -- gcc-location:
+ -- ghc-location:
+ -- ghc-pkg-location:
+ -- ghcjs-location:
+ -- ghcjs-pkg-location:
+ -- greencard-location:
+ -- haddock-location:
+ -- happy-location:
+ -- haskell-suite-location:
+ -- haskell-suite-pkg-location:
+ -- hmake-location:
+ -- hpc-location:
+ -- hsc2hs-location:
+ -- hscolour-location:
+ -- jhc-location:
+ -- ld-location:
+ -- pkg-config-location:
+ -- runghc-location:
+ -- strip-location:
+ -- tar-location:
+ -- uhc-location:
+
+program-default-options
+ -- alex-options:
+ -- ar-options:
+ -- c2hs-options:
+ -- cpphs-options:
+ -- doctest-options:
+ ghc-options: -haddock
+ -- ghc-options:
+ -- ghc-pkg-options:
+ -- ghcjs-options:
+ -- ghcjs-pkg-options:
+ -- greencard-options:
+ -- haddock-options:
+ -- happy-options:
+ -- haskell-suite-options:
+ -- haskell-suite-pkg-options:
+ -- hmake-options:
+ -- hpc-options:
+ -- hsc2hs-options:
+ -- hscolour-options:
+ -- jhc-options:
+ -- ld-options:
+ -- pkg-config-options:
+ -- runghc-options:
+ -- strip-options:
+ -- tar-options:
+ -- uhc-options:
diff --git a/install.scm b/install.scm
index 2fa3ad1..a51ee96 100755
--- a/install.scm
+++ b/install.scm
@@ -97,9 +97,12 @@
(make-dir-parents (dirname dir-path))
(mkdir dir-path)))
+(define (dot-replace str)
+ (replace str "dot-" "."))
+
(define (config-links src target dry-run)
(let ((src-path (expand-file src))
- (target-path (replace (expand-file target) "dot-" ".")))
+ (target-path (dot-replace (expand-file target))))
(unless (and (symlink? target-path) (equal? (readlink target-path) src-path))
(rm-tree target-path dry-run)
(make-dir-parents (dirname target-path))
@@ -115,7 +118,7 @@
(define (enter? name stat result)
(let* ((subdir (substring name src-len))
- (target-subdir (expand-file (string-append target-path subdir))))
+ (target-subdir (expand-file (dot-replace (string-append target-path subdir)))))
(false-if-exception (eq? 'directory (stat:type (lstat target-subdir))))))
(define (leaf name stat result)
@@ -131,7 +134,7 @@
(cons 0 result))
(define (up name stat result)
(let* ((subdir (substring name src-len))
- (target-subdir (expand-file (string-append target-path subdir)))
+ (target-subdir (expand-file (dot-replace (string-append target-path subdir))))
(target-subdir-file-count (length (scandir target-subdir
(lambda (x)
(not (member x (list "." ".."))))))))