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
{ | |
name = "armv7l-hf-multiplatform-custom"; | |
kernelMajor = "2.6"; # Using "2.6" enables 2.6 kernel syscalls in glibc. | |
kernelHeadersBaseConfig = "multi_v7_defconfig"; | |
kernelBaseConfig = "multi_v7_defconfig"; | |
kernelArch = "arm"; | |
kernelDTB = true; | |
kernelAutoModules = false; | |
uboot = null; | |
kernelTarget = "zImage"; |
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
root@A20-OLinuXino:~/workarea/nix-1.11.4# make -j2 | |
make: Warning: File 'config.h.in' has modification time 210856510 s in the future | |
GEN doc/manual/manual.xmli | |
GEN config.h | |
doc/manual/local.mk:21: recipe for target 'doc/manual/manual.xmli' failed | |
make: *** [doc/manual/manual.xmli] Error 1 | |
make: *** Waiting for unfinished jobs.... | |
root@A20-OLinuXino:~/workarea/nix-1.11.4# ls -lah config.h.in | |
-rw-r--r-- 1 30015 30000 3.4K Sep 6 2016 config.h.in |
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
{ | |
"type": "dict", | |
"meta": {}, | |
"value": { | |
"build_script": { | |
"type": "file", | |
"meta": {}, | |
"value": "builders/overrider.nix" | |
}, | |
"override": { |
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
mySed = pkgs.gnused.overrideDerivation (oldAttrs: { | |
name = "mysed"; | |
patchPhase = oldAttrs.patchPhase + '' | |
# do something | |
''; | |
}); | |
# or | |
mySed = pkgs.gnused.overrideDerivation (oldAttrs: { |
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 python3 | |
from subprocess import Popen, PIPE, TimeoutExpired | |
from threading import Thread | |
import random | |
import json | |
def uniqueid(): |
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
nix.set('runme', 'nixpkgs', "https://github.com/matejc/nixpkgs#mylocal57") | |
.then(function(){ | |
// return nix.set('runme', 'scripts', 'https://github.com/matejc/hydra_scripts#master'); | |
return nix.set('runme', 'scripts', '/home/matejc/workarea/nix-lib/test/data'); | |
}) | |
.then(function(){ | |
return nix.set('runme', 'buildScript', 'runme.nix'); | |
}) | |
.then(function(){ |
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
web: | |
image: fossology/fossology | |
environment: | |
- FOSSOLOGY_DB_HOST=db | |
- FOSSOLOGY_DB_NAME=fossology | |
- FOSSOLOGY_DB_USER=fossy | |
- FOSSOLOGY_DB_PASSWORD=fossy | |
ports: | |
- 8081:80 | |
links: |
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
{ pkgs, config, lib, ... }: | |
let | |
extusbup = pkgs.writeScriptBin "extusb.up" '' | |
#!${pkgs.stdenv.shell} | |
#cryptsetup luksOpen /dev/extusb1 vmware | |
cat /root/keyfile | cryptsetup -v --key-file=- luksOpen /dev/sdc1 vmware | |
vgscan | |
vgchange -ay vgvmware | |
mount /dev/vgvmware/vmware /home/test/Desktop/Virtual | |
''; |
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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
env = pkgs.buildEnv { | |
name = "runscape-env"; | |
paths = with pkgs; [ | |
/* required by launcher executable */ | |
xorg.libSM xorg.libXxf86vm libpng12 xorg.libX11 | |
webkitgtk2 glib.out pango.out cairo.out gdk_pixbuf gtk.out | |
stdenv.cc.cc.lib glib_networking.out curl.out |
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 | |
/run/current-system/sw/bin/xautolock -time 30 -locker '/home/matej/sync/bin/lockscreen' & |