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
{ stdenv, fetchFromGitHub, cmake, pkgconfig }: | |
let | |
inherit (stdenv.lib) optionals; | |
isCross = stdenv.buildPlatform != stdenv.hostPlatform; | |
in | |
stdenv.mkDerivation { | |
pname = "raspberrypi-armstubs"; | |
version = "2020-10-08"; |
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
// code is MIT licensed etc etc copyright 2018 @puckipedia | |
// - dsmrv5 parser / @yorickvp | |
// -- Libraries used -- | |
#pragma GCC diagnostic warning "-Wall" | |
#pragma GCC diagnostic warning "-Wextra" | |
// ESP8266 OTA | |
#include <ArduinoOTA.h> | |
// look I'm not going to pay for a signal inverter. hooray for software | |
#define INVERT_SERIAL |
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> {}, runCommandNoCC ? pkgs.runCommandNoCC }: | |
{ | |
name, | |
config, | |
extraMountDirs ? [], | |
extraMountFiles ? [] | |
}: | |
let | |
eval-config = import (pkgs.path + "/nixos/lib/eval-config.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
{ stdenvNoCC, fetchFromGitHub, telink-825x-sdk, tc32-gcc, python3 }: | |
stdenvNoCC.mkDerivation { | |
pname = "ATC_Thermometer"; | |
version = "20201003"; | |
src = "${fetchFromGitHub { | |
owner = "atc1441"; | |
repo = "ATC_MiThermometer"; | |
rev = "772348a2266ea22bd58795314be148a8154e6462"; | |
sha256 = "05ggw0c61fbhw751c5icpv31i0cjk2nx5nmnkixid07ajsmhb7fw"; | |
}}/ATC_Thermometer"; |
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-shell:~]$ seq 1000 | perf stat -e r002c:u,r0225:u,r0425:u,r0825:u,r0e25:u sort > /dev/null | |
Performance counter stats for 'sort': | |
1 r002c:u | |
2 r0225:u | |
43 r0425:u | |
84 r0825:u | |
129 r0e25:u |
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 | |
pkgs = import <nixpkgs> {}; | |
nix-npm-buildpackage = pkgs.callPackage (builtins.fetchTarball "https://github.com/yorickvp/nix-npm-buildpackage/archive/yorickvp/packageOverrides.tar.gz") {}; | |
in | |
nix-npm-buildpackage.buildNpmPackage { | |
src = ./.; | |
installJavascript = false; | |
packageOverrides = { | |
bs-platform = pkgs.bs-platform; | |
}; |
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> { }, stdenv ? pkgs.stdenv, love_0_7 ? pkgs.love_0_7 }: | |
let | |
name = "nottetris2"; | |
src = pkgs.fetchzip { | |
url = "http://stabyourself.net/dl.php?file=${name}/${name}-linux.zip"; | |
sha256 = "1zwwp4h1njwl3jnwkszcsqx868v16312pbfy5rp9h48ym79spd36"; | |
stripRoot = false; | |
}; | |
in pkgs.writeShellScriptBin name '' | |
exec ${love_0_7}/bin/love "${src}/Not Tetris 2.love" |
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
speed 9600 baud; rows 0; columns 0; line = 0; | |
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; | |
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; | |
werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; | |
-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts | |
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff | |
-iuclc -ixany -imaxbel -iutf8 | |
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 | |
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt | |
echoctl echoke -flusho -extproc |
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/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix | |
index 85305e84266..91301d6a199 100644 | |
--- a/pkgs/servers/sql/postgresql/default.nix | |
+++ b/pkgs/servers/sql/postgresql/default.nix | |
@@ -28,7 +28,7 @@ let | |
inherit sha256; | |
}; | |
- outputs = [ "out" "lib" "doc" "man" ]; | |
+ outputs = [ "out" "lib" "doc" "man" "dev" ]; |
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
poetry init | |
cat requirements.txt | perl -pe 's/([<=>]+)/:$1/' | xargs -t -n 1 -I {} poetry add '{}' |