Skip to content

Instantly share code, notes, and snippets.

{ pkgs ? (import <nixpkgs> {})
, useClang ? false
, binutils ? pkgs.binutils
, lib ? pkgs.lib
, stdenv' ? pkgs.stdenv
, gcc ? pkgs.gcc
, clangStdenv ? pkgs.clangStdenv
, gnumake ? pkgs.gnumake
, llvmPackages ? pkgs.llvmPackages
}:
{ foo ? null
}:
{
config = {
${foo}.things = true;
}
}
{ lib, config, ... }:
with lib;
{
options.machine = mkOption {
default = null;
type = types.nullOr types.attr;
};
config = mkIf config.enableFoo {
jsaddle = pkgs.haskell.packages.ghcjsHEAD.jsaddle.overrideAttrs (old: {
libraryHaskellDepends = old.libraryHaskellDepends + [ self.ghcjs-base ];
});
╔════════╤═══════════════════════════════════════════════════════════════════════════════════════╗
║ Bytes │ Description ║
╠════════╪═══════════════════════════════════════════════════════════════════════════════════════╣
║ 8 │ "farbfeld" magic value ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ 4 │ 32-Bit BE unsigned integer (width) ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ 4 │ 32-Bit BE unsigned integer (height) ║
╟────────┼───────────────────────────────────────────────────────────────────────────────────────╢
║ [2222] │ 4⋅8-Bit BE unsigned integers [RGBA] / pixel, interleaved with UTF-32 bytes, row-major ║
-- | This file is part of AdrianParvin.
-- |
-- | AdrianParvin is free software: you can redistribute it and/or modify
-- | it under the terms of the GNU General Public License as published by
-- | the Free Software Foundation, either version 3 of the License, or
-- | (at your option) any later version.
-- |
-- | AdrianParvin is distributed in the hope that it will be useful,
-- | but WITHOUT ANY WARRANTY; without even the implied warranty of
-- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
string = "s7 test"
for k, v in string.gmatch(string, "(%S+)%s(%S+)") do
_G[k] = v
end
print(s7)
string = "s7 test"
for k, v in string.gmatch(string, "(%S+)%s(%S+)") do
_G[k] = v
end
print(s7)
{ pkgs, ... }:
{
imports = [ { nix.binaryCachePublicKeys = [ "uwu" ]; } ];
boot.loader.grub.enable = false;
fileSystems."/".device = "x";
nixpkgs.config.overlays = self: super: {
bootstrapFiles = {};
stdenv = super.stdenv // {
# bootstrapTools = abort "blargh";
nixops create ./ops/config.nix ./ops/ec2.nix -d deployment