Anthony Carrico

Results 33 comments of Anthony Carrico

Take a look at my configuration in the last comment of the following issue: https://github.com/lefcha/imapfilter/issues/211#

I've expanded my ledger proxy script given in #1721 to deal with ledger-mode's current C-c C-a ledger-add-transaction behavior. This assumes ISO dates. ledger.sh: ``` #!/bin/sh iargs=("$@") oargs=() j=0; date=; for((i=0;...

@DamienCassou, correct, you will have to adjust the script if you don't use ISO standard dates, but maybe you should try them? See: https://github.com/simonmichael/hledger/issues/933

Just to sketch out the "find" option: ``` [nix-shell:~/org/src/calling-haskell-from-c]$ find . ./hs-to-c/src/HsToC/Fib.hs ./hs-to-c/hs-to-c.cabal ./hs-to-c/default.nix ./hs-from-c ./hs-from-c/default.nix ./hs-from-c/Makefile ./hs-from-c/src ./hs-from-c/src/main.c ``` with `./hs-to-c/hs-to-c.cabal`: ``` name: hs-to-c author: Anthony Carrico version: 0...

I can get a little closer with this `./hs-from-c/default.nix`: ``` { stdenv, hs-to-c, haskellPackages }: stdenv.mkDerivation { pname = "hs-from-c"; version = "0"; src = ./.; buildInputs = [ hs-to-c...

I've been able to link `main.o` written in C and compiled with `$CC` to a haskell Module `Fib` either - compiled to `fib.so` with `ghc`, and linked with `$CC` or...

I've created a derivation that allows the C compiler and the linker to access ghc's includes and rts libraries: ``` { stdenv, haskellPackages }: let ghc = haskellPackages.ghc; in stdenv.mkDerivation...

For your own libraries, you can pull the same trick I did above in `ghc-from-c`. In the `hs-to-c` example, here is an `export.nix` file beside the cabal2nix generated `default.nix` to...

Ok. So my last two comments are a full solution to the original issue. To provide the solution to others, either 1. my `ghc-from-c` derivation should go in nixpkgs, and...