I hereby claim:
- I am deepfire on github.
- I am serge_kosyrev (https://keybase.io/serge_kosyrev) on keybase.
- I have a public key ASD2nUFY_nUScYAt147A-oLj5TQzYeKs2vakDKy0_n2XjAo
To claim this, I am signing this object:
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
cfg = config.services.ceph-benaco; | |
inherit (pkgs.callPackage ../helpers.nix {}) ensureUnitExists; | |
in |
I hereby claim:
To claim this, I am signing this object:
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE UnicodeSyntax #-} | |
import GHC.TypeLits | |
import GHC.Types |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeInType #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
import GHC.Types | |
import GHC.TypeLits |
### | |
### GHC HEAD in nix-shell Nano-HOWTO | |
### | |
# | |
# 1. Choose GHC git REVision | |
# 2. Determine Nix hash (requires `nix-prefetch-scripts`) of the GHC source tree for the chosen revision: | |
nix-prefetch-git git://git.haskell.org/ghc.git --fetch-submodules --rev $REV |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, UnicodeSyntax #-} | |
module Foo where | |
import Data.Foldable (asum) | |
import Data.Aeson as AE | |
import Data.Aeson.Types as AE | |
import qualified Data.ByteString.Lazy as BL | |
import Data.ByteString.Lazy.Char8 (ByteString) | |
import qualified Data.ByteString.Lazy.UTF8 as LBU |
with import <nixpkgs> {}; | |
let vendorgl = linuxPackages.nvidia_x11.overrideAttrs (oldAttrs: rec { | |
libsOnly = true; | |
kernel = null; | |
name = "nvidia-x11-367.27-${pkgs.linuxPackages.kernel.version}"; | |
src = fetchurl { | |
url = "http://download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.run"; | |
sha256 = "0000000000000000000000000000000000000000000000000000"; | |
}; | |
}); |
#!/bin/sh | |
mapcflip () { | |
local xs=$1; shift | |
local x | |
for x in $(echo $xs | sed 's/,/ /g') | |
do | |
$(echo $@ | sed s/%/$x/) |