This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╔════════╤═══════════════════════════════════════════════════════════════════════════════════════╗ | |
║ 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 contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jsaddle = pkgs.haskell.packages.ghcjsHEAD.jsaddle.overrideAttrs (old: { | |
libraryHaskellDepends = old.libraryHaskellDepends + [ self.ghcjs-base ]; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, config, ... }: | |
with lib; | |
{ | |
options.machine = mkOption { | |
default = null; | |
type = types.nullOr types.attr; | |
}; | |
config = mkIf config.enableFoo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ foo ? null | |
}: | |
{ | |
config = { | |
${foo}.things = true; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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 | |
}: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ configs, pkgs, lib, ... }: | |
{ | |
imports = [ | |
/etc/nixos/hardware-configuration.nix | |
({ | |
options = { | |
environment.systemPackages = lib.mkOption { | |
apply = lib.lists.remove pkgs.nixos-icons; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ configs, pkgs, lib, ... }: | |
{ | |
imports = [ | |
/etc/nixos/hardware-configuration.nix | |
({ | |
options = { | |
environment.systemPackages = lib.mkOption { | |
apply = lib.lists.remove pkgs.nixos-icons; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ configs, pkgs, lib, ... }: | |
{ | |
imports = [ | |
/etc/nixos/hardware-configuration.nix | |
({ | |
options = { | |
environment.systemPackages = lib.mkOption { | |
apply = lib.lists.remove pkgs.nixos-icons; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nixpkgs.config = { | |
allowUnfree = true; | |
environment = {...}: { | |
options = { | |
systemPackages = lib.mkOption { | |
apply = old: []; | |
}; | |
}; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Written 2011 Nicholas J. Kain, released as Public Domain */ | |
.weak _init | |
.weak _fini | |
.text | |
.global _start | |
_start: | |
xor %rbp,%rbp /* rbp:undefined -> mark as zero 0 (ABI) */ | |
mov %rdx,%r9 /* 6th arg: ptr to register with atexit() */ | |
pop %rsi /* 2nd arg: argc */ | |
mov %rsp,%rdx /* 3rd arg: argv */ |