View example.nix
This file contains 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
let | |
builder = "${builtins.storePath <bash>}/bin/bash"; | |
in | |
{ | |
# nix-build basic.nix -A foo -I bash=$(nix-build '<nixpkgs>' -A bash --no-out-link) | |
foo = derivation { | |
name = "foo-0.0.0"; | |
inherit builder; | |
args = ["-c" "echo 42 > $out"]; |
View u.sh
This file contains 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
:u() { | |
local exports | |
exports=$(direnv apply_dump <(nix-shell -E "with import <nixpkgs> {}; mkShell { buildInputs = [ $* ]; }" --run 'direnv dump')) | |
eval "$exports" | |
name+="''${name:+ }$*" | |
typeset -U PATH | |
} |
View darwin-bootstrap-tdb.patch
This file contains 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
diff --git a/pkgs/os-specific/darwin/apple-source-releases/ICU/default.nix b/pkgs/os-specific/darwin/apple-source-releases/ICU/default.nix | |
index 761ff3ea925..a8f667dcbe7 100644 | |
--- a/pkgs/os-specific/darwin/apple-source-releases/ICU/default.nix | |
+++ b/pkgs/os-specific/darwin/apple-source-releases/ICU/default.nix | |
@@ -20,4 +20,8 @@ appleDerivation { | |
mv $out/usr/local/include $out/include | |
rm -rf $out/usr | |
''; | |
+ | |
+ failureHook = '' |
View log-format.patch
This file contains 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
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc | |
index aa694577d..504ae6ebd 100644 | |
--- a/src/libstore/globals.cc | |
+++ b/src/libstore/globals.cc | |
@@ -207,6 +207,16 @@ std::string listLogFormats() | |
return res; | |
} | |
+LogFormatSetting::LogFormatSetting(Config * options, | |
+ LogFormat def, |
View shell.nix
This file contains 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
with import <nixpkgs> {}; | |
with darwin.apple_sdk.frameworks; | |
stdenv.mkDerivation { | |
name = "elixir-environment"; | |
strictDeps = true; | |
nativeBuildInputs = [ beam.packages.erlangR23.elixir nodejs coreutils-prefixed pkgconfig fwup squashfsTools ]; | |
buildInputs = [ CoreFoundation CoreServices ]; | |
NIX_CFLAGS_COMPILE = "-Wimplicit-function-declaration"; | |
} |
View config.json
This file contains 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
{ | |
"runner": { | |
"identity": "test-builder" | |
}, | |
"checkout": { | |
"root": "/tmp/ofborg" | |
}, | |
"nix": { | |
"system": "x86_64-linux", | |
"remote": "daemon", |
View hydra-job-revision
This file contains 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
hydra-job-revision() { | |
local jobseteval job=$1 | |
shift 1 | |
case "$job" in | |
*'/'*) ;; | |
*) job="nixpkgs/trunk/$job" ;; | |
esac | |
case "$job" in | |
'http://'*|'https://'*) ;; | |
*) job="https://hydra.nixos.org/job/$job" ;; |
View Dockerfile
This file contains 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
FROM lnl7/nix:2.3.6 | |
RUN nix-store --repair-path $(nix-store -qR $(which nix)) | |
COPY entrypoint.sh / | |
ENTRYPOINT /entrypoint.sh |
View configuration.nix
This file contains 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
{ config, lib, ... }: | |
{ | |
imports = [ ./example-module.nix ]; | |
example.enable = true; | |
} |
View update
This file contains 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
#!/usr/bin/env bash | |
set -e | |
BRANCH=master | |
TARGET=/etc/nixos | |
ref="$1" | |
oldrev="$2" | |
newrev="$3" |
NewerOlder