Skip to content

Instantly share code, notes, and snippets.

View LnL7's full-sized avatar
❄️
1970 /nix/store

Daiderd Jordan LnL7

❄️
1970 /nix/store
View GitHub Profile
(define (fill-pixel! x y colour)
(WriteSpiCommand! PASET y)
(WriteSpiCommand! CASET x)
(WriteSpiCommand! RAMWR)
(spi-put SPI_0 colour))
(load "ICP1_2b_regsim.scm")
(define (assemble-and-run p)
(define m (make-machine
'(cont res val_1 val_2)
`((+ ,+)(* ,*)(- ,-)(= ,=)(< ,<)(> ,>)(display ,(lambda (x)(display x)(newline))))
p))
(start m)
(display (get-register-contents m 'res)))
@LnL7
LnL7 / gist:6220979
Last active December 21, 2015 00:29
defmodule Words do
def count(input) do
input |> String.downcase
|> (&Regex.scan(%r/\w+/, &1)).()
|> List.flatten
|> count_words
end
defp count_words(words) do
increment = &(&1 + 1)
@LnL7
LnL7 / webtoolkit.rb
Last active December 31, 2015 03:29
require 'formula'
class Webtoolkit < Formula
homepage 'http://webtoolkit.eu'
sha1 '0ae889c1411864d783962d4878b90efbce7f3382'
stable do
url 'http://downloads.sourceforge.net/project/witty/wt/3.3.1/wt-3.3.1.tar.gz'
end
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 19a5581..0a855bb 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -206,7 +206,7 @@ self: super: {
# hfsevents needs CoreServices in scope
hfsevents = if pkgs.stdenv.isDarwin
- then with pkgs.darwin.apple_sdk.frameworks; addBuildTool (addBuildDepends super.hfsevents [Cocoa]) CoreServices
+ then with pkgs.darwin.apple_sdk.frameworks; addBuildTool (addBuildDepends super.hfsevents [super.cereal super.mtl super.text Cocoa]) CoreServices
diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix
index de8865e..1a6644f 100644
--- a/pkgs/development/haskell-modules/hackage-packages.nix
+++ b/pkgs/development/haskell-modules/hackage-packages.nix
@@ -118977,13 +118977,16 @@ self: {
}) {};
"hfsevents" = callPackage
- ({ mkDerivation }:
+ ({ mkDerivation, cereal, mtl, text }:
nix-repl> :b darwin.osx_private_sdk
warning: you did not specify ‘--add-root’; the result might be removed by the garbage collector
/nix/store/5hy0n3h1h0y2rpdcc33vcpi5972l4ml5-OSXPrivateSDK-f4d52b6
this derivation produced the following outputs:
out -> /nix/store/5hy0n3h1h0y2rpdcc33vcpi5972l4ml5-OSXPrivateSDK-f4d52b6
Updating registry `https://github.com/rust-lang/crates.io-index`
SYSCALL(args) = return
thread_selfid(0x0, 0x0, 0x0) = 8216191 0
csops(0x0, 0x0, 0x7FFF565E0890) = 0 0
issetugid(0x0, 0x0, 0x7FFF565E0890) = 0 0
shared_region_check_np(0x7FFF565DE798, 0x0, 0x7FFF565E0890) = 0 0
stat64("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x7FFF565DFD28, 0x7FFF565E0890) = 0 0
open("/usr/lib/dtrace/libdtrace_dyld.dylib\0", 0x0, 0x0) = 3 0
pread(0x3, "\312\376\272\276\0", 0x1000, 0x0) = 4096 0
pread(0x3, "\317\372\355\376\a\0", 0x1000, 0x1000) = 4096 0
test [run-make] run-make/version ... ok
test [run-make] run-make/volatile-intrinsics ... ok
test [run-make] run-make/weird-output-filenames ... ok
test [run-make] run-make/unicode-input ... ok
failures:
---- [run-make] run-make/linker-output-non-utf8 stdout ----
{ pkgs ? import <nixpkgs> {} }:
with pkgs.lib;
evalModules {
modules = [
({ config, ... }:
{
options = {