Skip to content

Instantly share code, notes, and snippets.

View Synthetica9's full-sized avatar

Patrick Hilhorst Synthetica9

View GitHub Profile
commit f1f1476d457e232faa35670a1950b7963737042d
Author: Patrick Hilhorst <[email protected]>
Date: Sun May 19 12:50:21 2019 +0200
Remove version checks
diff --git a/setup.py b/setup.py
index 7bdf25f..ea31a0b 100644
--- a/setup.py
+++ b/setup.py
these derivations will be built:
/nix/store/py5jm1i3pg5yaxs05lspvrza80dvw8bq-dejavu-fonts-full-2.37-armv7l-unknown-linux-gnueabi.drv
/nix/store/yr4zlmwc29vm6kvpzg11ippd95q2piwm-dejavu-fonts-minimal-2.37-armv7l-unknown-linux-gnueabi.drv
/nix/store/ndva6xs37fzkifhl37c2ai7pf1mfnk9m-dejavu-fonts-2.37-armv7l-unknown-linux-gnueabi.drv
building '/nix/store/py5jm1i3pg5yaxs05lspvrza80dvw8bq-dejavu-fonts-full-2.37-armv7l-unknown-linux-gnueabi.drv'...
unpacking sources
unpacking source archive /nix/store/v7wik3xar8rkap69d5smm047rfcigq4p-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
echo "starting sway"
LOGFILE=/tmp/sway_$(date +"%Y-%m-%dT%H:%M:%S").log
exec sway | unbuffer -p tee $LOGFILE
fi
exec fish
#!/usr/bin/env python3
import i3ipc
i3 = i3ipc.Connection()
def main():
windows = i3.get_tree().find_focused().workspace().leaves()
for window in windows:
#!/usr/bin/env nix-shell
#!nix-shell -i 'python3.7' -p "python37.withPackages (p: with p; [pandas matplotlib beautifulsoup4 requests])"
from matplotlib import pyplot as plt
import pandas as pd
import requests
import re
from datetime import datetime
from textwrap import wrap
nixpkgs.config.packageOverrides = pkgs: {
redshift = pkgs.redshift.overrideAttrs (oldAttrs: rec {
src = pkgs.fetchFromGitHub {
owner = "breznak";
repo = "redshift";
rev = "Lourens-Rich-master";
sha256 = "1b9gjz1crw8fzlpdisafn6lx37m5dg7s1ak35qcrgzgqlcsldw1l";
};
});
}
redshift = pkgs.redshift.overrideAttrs (oldAttrs: rec {
src = pkgs.fetchFromGitHub {
owner = "breznak";
repo = "redshift";
rev = "Lourens-Rich-master";
sha256 = "1b9gjz1crw8fzlpdisafn6lx37m5dg7s1ak35qcrgzgqlcsldw1l";
};
});
# Doesn't work:
$ cat examples/diyInherit.nix | ./result/bin/nix-linter /dev/stdin
Failure when parsing:
/dev/stdin:1:1:
|
1 | <empty line>
| ^
unexpected end of input
expecting '{', assert, if, let block, letter, or with
instance DiscreteOrdered a => Semigroup (RSet a) where
(<>) = rSetUnion
instance DiscreteOrdered a => Monoid (RSet a) where
mempty = rSetEmpty
- /nix/store/a39q29hy3k65ypfbhkv2sq7axsmcnpbd-nixos-system-AquaRing-19.03pre161797.c26dbef830a.drv:{out}
+ /nix/store/wshajz6imk1hjwqpiflgrcgqh53hnhps-nixos-system-AquaRing-19.03pre161797.c26dbef830a.drv:{out}
• The input named `etc` differs
- /nix/store/aiid1f10x4x9hd8h4m8439p04rrm40fq-etc.drv:{out}
+ /nix/store/m956vlwmgaj9q7mkcpw5m9wqnwxs63vh-etc.drv:{out}
• The input named `etc-nixos.conf` differs
- /nix/store/1xqpmqskz77n3p9df1rc6njrl08n3dqf-etc-nixos.conf.drv:{out}
+ /nix/store/ma3am349cfl7h40gix9cwmpz4421rsx6-etc-nixos.conf.drv:{out}
• The input named `firmware` differs
- /nix/store/na9n8mrfrghiv1xxgmjbbnqpib0b3hg6-firmware.drv:{out}