Skip to content

Instantly share code, notes, and snippets.

@IreneKnapp
IreneKnapp / default.nix
Created May 28, 2021 02:14
How to use crate2nix's output
# Use `nix-build`, not `nix build`, when doing development on this file. It
# does a better job of propagating error messages from the build tools upward.
let pkgs = import <nixpkgs> { };
cargo = pkgs.callPackage ./Cargo.nix { };
in cargo.workspaceMembers
@IreneKnapp
IreneKnapp / default.nix
Created May 22, 2021 06:23
In-progress attempt to package weechat-matrix-rs for nixpkgs; this is one of several files that would be needed
{ cmake
, fetchFromGitHub
, lib
, libclang
, openssl
, pkgconfig
, rustPlatform
, stdenv
, weechat-unwrapped
}:

Keybase proof

I hereby claim:

  • I am ireneknapp on github.
  • I am ireneista (https://keybase.io/ireneista) on keybase.
  • I have a public key ASDcQn4qZULMnr9Tu7TfHoeT28x4h5Wa433iTOE0z_4ABQo

To claim this, I am signing this object:

module Main
namespace JS
console : JS_IO Ptr
console = foreign FFI_JS "console" (JS_IO Ptr)
%inline
dot : Ptr -> String -> (a : Type)
-> {auto fty : FTy FFI_JS [] (Ptr -> String -> JS_IO (JsFn a))}
-> JS_IO a
(defmacro debug (&body n)
`(progn
,(mapcar
(lambda (ni)
`(format t "~W: ~W~%" ',ni ,ni))
n)))
(let ((a (make-array 10))
(x "some string"))
(setf (aref a 0) 42)