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 rec { | |
name = "gem5-git"; | |
env = buildEnv { name = name; paths = buildInputs; }; | |
zlib-dev = lib.getDev zlib; | |
zlib-lib = lib.getLib zlib; | |
buildInputs = [ | |
mercurial | |
git | |
gcc |
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
import os | |
env = Environment() | |
env.Append(LIBPATH=['/nix/store/dv2p4mp8fyk7kxv3nk4s0vrl89ch4j5z-python-2.7.13/lib']) | |
dict = env.Dictionary() | |
libpaths = dict['LIBPATH'] | |
for p in libpaths: | |
print p | |
print env.Dump() |
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
{stdenv, pkgconfig, fetchgit, gnome3, glib, goocanvas, groff, libxml2, intltool, python3, waf, makeWrapper}: | |
stdenv.mkDerivation rec { | |
version = "v0.84.21"; | |
name = "oregeno-${version}"; | |
src = fetchgit { | |
url = "git://github.com/drahnr/oregano"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1y4pskcf595llkf22ggcj26p651i6s4x2x8qn6hkd2syip89flj5"; | |
}; |
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
{stdenv, pkgconfig, fetchgit, gnome3, glib, goocanvas, groff, libxml2, intltool, python3, waf, makeWrapper}: | |
stdenv.mkDerivation rec { | |
version = "v0.84.21"; | |
name = "oregeno-${version}"; | |
src = fetchgit { | |
url = "git://github.com/drahnr/oregano"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1y4pskcf595llkf22ggcj26p651i6s4x2x8qn6hkd2syip89flj5"; | |
}; |
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
{stdenv, pkgconfig, fetchgit, gnome3, glib, goocanvas, groff, libxml2, intltool, python3, waf, makeWrapper}: | |
stdenv.mkDerivation rec { | |
version = "v0.84.21"; | |
name = "oregeno-${version}"; | |
src = fetchgit { | |
url = "git://github.com/drahnr/oregano"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1y4pskcf595llkf22ggcj26p651i6s4x2x8qn6hkd2syip89flj5"; | |
}; |
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
{stdenv, pkgconfig, fetchgit, gnome3, glib, goocanvas, groff, libxml2, intltool, python3, waf, makeWrapper}: | |
stdenv.mkDerivation rec { | |
version = "v0.84.21"; | |
name = "oregeno-${version}"; | |
src = fetchgit { | |
url = "git://github.com/drahnr/oregano"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1y4pskcf595llkf22ggcj26p651i6s4x2x8qn6hkd2syip89flj5"; | |
}; |
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
{ | |
# Import all .nix files and directories with a default.nix file from the given directory. | |
dirImports = importDir: let | |
dirSet = builtins.readDir importDir; | |
# Sort out symlinks | |
symSet = let | |
# Check if ${symlink}/ exists. If it does, it is a directory. | |
p = builtins.partition ( f: builtins.pathExists "${importDir}/${f}/") ( | |
builtins.filter (f: dirSet.${f} == "symlink") (builtins.attrNames dirSet) | |
); |
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
{ config, pkgs, ... }: | |
let | |
unstable = import <nixos-unstable> {}; | |
in { | |
services.zigbee2mqtt.enable = true; | |
# services.zigbee2mqtt.package = unstable.zigbee2mqtt; | |
networking.firewall.allowedTCPPorts = [ 8880 ]; | |
services.zigbee2mqtt.settings = { | |
permit_join = false; | |
serial = { |