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
let pkgs = import <nixpkgs> {}; | |
in | |
rec { | |
libpicoipp = pkgs.callPackage ./libpicoipp.nix {}; | |
picoscope = pkgs.callPackage ./picoscope.nix { | |
inherit libpicoipp; | |
mono = pkgs.mono6; | |
gtk-sharp-2_0 = pkgs.gtk-sharp-2_0.override { mono = pkgs.mono6; }; | |
}; | |
} |
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 '{}' |
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> { }; | |
inherit (pkgs) lib nixos; | |
shim = { | |
boot.loader.systemd-boot.enable = true; | |
fileSystems."/" = { | |
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000"; | |
fsType = "btrfs"; | |
}; | |
}; |
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/compiler/old-ghc-nix/default.nix b/compiler/old-ghc-nix/default.nix | |
index 7d8a396..228c329 100644 | |
--- a/compiler/old-ghc-nix/default.nix | |
+++ b/compiler/old-ghc-nix/default.nix | |
@@ -3,8 +3,8 @@ let | |
fetch = jsonFile: | |
with builtins; | |
let spec = fromJSON (readFile jsonFile); | |
- in pkgs.fetchgit { | |
+ in builtins.fetchGit { |