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
# ... | |
virtualisation.virtualbox.guest.enable = true; | |
nixpkgs.config.packageOverrides = pkgs: { | |
linuxPackages = pkgs.linuxPackages // { | |
virtualboxGuestAdditions = pkgs.callPackage ./virtualbox-guest.nix {}; | |
}; | |
}; | |
# ... |
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
# ‘grub-reboot’ sets a one-time saved entry, which we process here and | |
# then delete. | |
if [ "${next_entry}" ]; then | |
set default="${next_entry}" | |
set next_entry= | |
save_env next_entry | |
set timeout=1 | |
else | |
set default=0 | |
set timeout=5 |
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
fonts = { | |
enableFontDir = true; | |
enableCoreFonts = true; | |
fontconfig.ultimate.substitutions = "ms"; | |
fonts = [ pkgs.unifont pkgs.noto-fonts-cjk ]; | |
}; |
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
with import <nixpkgs>{}; runCommand "shell" { buildInputs = [ | |
(haskellPackages.ghcWithHoogle (h: with h; [ | |
diagrams | |
diagrams-gtk | |
lens | |
io-memoize | |
haskeline | |
pointfree | |
xmonad | |
xmonad-contrib |
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
[clever@amd-nixos:~/apps/nixpkgs/pkgs/top-level]$ git diff haskell-packages.nix | |
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix | |
index 2f21d2a5d7..2d8866bd0e 100644 | |
--- a/pkgs/top-level/haskell-packages.nix | |
+++ b/pkgs/top-level/haskell-packages.nix | |
@@ -59,12 +59,12 @@ in rec { | |
inherit (bootPkgs) hscolour; | |
}; | |
ghc801 = callPackage ../development/compilers/ghc/8.0.1.nix rec { | |
- bootPkgs = packages.ghc7103; |
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
with import <nixpkgs> {}; | |
let | |
openscenegraph' = openscenegraph.overrideAttrs (old: { | |
name = "OpenSceneGraph-3.4.0"; | |
src = /root/OpenSceneGraph-3.4.0.zip; | |
}); | |
in stdenv.mkDerivation { | |
name = "example"; | |
buildInputs = [ cmake mesa openscenegraph' pkgconfig ]; |
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
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "fixme"; | |
src = fetchurl { | |
url = "http://example.com/fixme.tar.gz"; | |
sha256 = "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"; | |
}; | |
buildInputs = [ cmake ]; | |
} |
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
let | |
config = { | |
packageOverrides = pkgs_in: { | |
}; | |
}; | |
pkgs = import <nixpkgs> { inherit config; }; | |
callPackage = pkgs.newScope self; | |
self = rec { | |
generator = callPackage ./cpp-protobuf-generator/generator.nix {}; | |
generator-env = callPackage ./cpp-protobuf-generator/env.nix {}; |
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
with import <nixpkgs> { config = {}; }; | |
callPackage ./glusterfs.nix {} |
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
(qemu) info mtree | |
address-space: memory | |
0000000000000000-ffffffffffffffff (prio 0, i/o): system | |
0000000000000000-0000000003ffffff (prio 0, ram): pc.ram | |
00000000fee00000-00000000feefffff (prio 4096, i/o): apic-msi | |
00000000fffffff0-00000000ffffffff (prio 0, rom): boot rom | |
address-space: I/O | |
0000000000000000-000000000000ffff (prio 0, i/o): io | |
000000000000007e-000000000000007f (prio 0, i/o): kvmvapic |