Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
export HYDRA_CONFIG=$PWD/hydra.conf
HYDRA_EVAL_JOBS=$(nix-build https://github.com/input-output-hk/ci-ops/archive/master.tar.gz -A hydra --no-out-link)/bin/hydra-eval-jobs
$HYDRA_EVAL_JOBS --option allowed-uris "https://github.com/NixOS https://github.com/input-output-hk" --arg supportedSystems '[ "x86_64-linux" ]' -I . release.nix | tee eval.json
@gilligan
gilligan / Playground.hs
Created March 30, 2021 17:25
Plutus Playground Smart Contract
import qualified Data.Text as T
import Playground.Contract
import Plutus.Contract hiding (when)
import PlutusTx.Prelude
-- | A 'Contract' that logs a message.
hello :: Contract () BlockchainActions T.Text ()
hello = logInfo @String "Hello, world"
endpoints :: Contract () BlockchainActions T.Text ()
# Uncrustify-0.70.1_f
#
# General options
#
# The type of line endings.
#
# Default: auto
newlines = auto # lf/crlf/cr/auto
diff --git a/mk/programs.mk b/mk/programs.mk
index 3fa9685c..ade23084 100644
--- a/mk/programs.mk
+++ b/mk/programs.mk
@@ -84,6 +84,5 @@ define build-program
# Phony target to run this program (typically as a dependency of 'check').
.PHONY: $(1)_RUN
$(1)_RUN: $$($(1)_PATH)
- $(trace-test) $$($(1)_PATH)
-
@gilligan
gilligan / poetry.lock
Created January 20, 2020 10:03
poetry weirdness
[[package]]
category = "main"
description = "A database migration tool for SQLAlchemy."
name = "alembic"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
version = "1.0.10"
[package.dependencies]
Mako = "*"

i3 configuration

First of some fixes for your i3 config:

# Plasma compatibility improvements
for_window [title="Desktop — Plasma"] kill; floating enable; border none
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable

for_window [class="systemsettings"] floating enable
nix-repl> :b haskell.packages.ghc881.lens
builder for '/nix/store/vww3skk5wbd0yvg051zcy2x3k96h3sp9-lens-4.17.1.drv' failed with exit code 1; last 10 log lines:
[17 of 83] Compiling Control.Lens.Internal.Zoom ( src/Control/Lens/Internal/Zoom.hs, dist/build/Control/Lens/Internal/Zoom.p_o )
cc1: error: command line option ‘-traditional’ is valid for the driver but not for C
<no location info>: error:
`cc' failed in phase `C Compiler'. (Exit code: 1)
[80 of 83] Compiling Paths_lens ( dist/build/autogen/Paths_lens.hs, dist/build/Paths_lens.p_o )
cc1: error: command line option ‘-traditional’ is valid for the driver but not for C

small nixpkgs-tungsten workshop

The purpose of this workshop is to give you enough context and information to enable you to build packages from the nixpkgs-tungsten repository - especially the vrouter kernel modules. In this workshop we will:

  • Install & Configure Nix
  • Learn basic commands for building and installing packages
  • Build & Install packages from nixpkgs-tungsten
INFO: Target platform: centos:7.4.1708
INFO: Contrail version: dev
INFO: OpenStack version: queens
INFO: OpenStack subversion (minor package version): 1
INFO: Contrail registry: 172.17.0.1:6666
INFO: Contrail repository: http://172.17.0.1:6667/
INFO: Contrail container tag: queens-dev
INFO: Contrail generic base extra rpms: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
INFO: Contrail base extra rpms: https://repos.fedorapeople.org/repos/openstack/openstack-queens/rdo-release-queens-1.noarch.rpm
INFO: yum additional repos to enable:
#!/usr/bin/env bash
nix-instantiate --json --eval -E "with import <nixpkgs> {}; lib.attrNames haskell.compiler" | jq "." | grep "ghc...\""