Skip to content

Instantly share code, notes, and snippets.

***
Unfortunately, we cannot download file jdk-8u181-linux-x64.tar.gz automatically.
Please go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html to download it yourself, and add it to the Nix store
using either
nix-store --add-fixed sha256 jdk-8u181-linux-x64.tar.gz
or
nix-prefetch-url --type sha256 file:///path/to/jdk-8u181-linux-x64.tar.gz
***
systemd.services.qtr-web = {
wantedBy = ["multi-user.target"];
serviceConfig = {
User = "nobody";
Type = "simple";
ExecStart = ''${qtr-web}/bin/serve'';
};
};
/nix/store/vn0wafw346kdn5glw6x3jwvpbanxavrl-icu4c-59.1
╚═══lib/libicutu.so.59.1: …r Unicode for C/C++../nix/store/9z650yzczx5zyhcw5n36ya6x4jq436mr-gcc-wrapper-7.3.0/bin/gcc.../ni…
=> /nix/store/9z650yzczx5zyhcw5n36ya6x4jq436mr-gcc-wrapper-7.3.0
╚═══bin/cpp: …k disable=SC2193.[[ "/nix/store/5l4qhkya7nyfbnv9ycrk7cbmdinph8br-gcc-7.3.0/bin/cpp" = *++ ]] && …
=> /nix/store/5l4qhkya7nyfbnv9ycrk7cbmdinph8br-gcc-7.3.0
Usage: nix why-depends <FLAGS>... <PACKAGE> <DEPENDENCY>
Summary: show why a package has another package in its closure.
Flags:
-a, --all show all edges in the dependency graph leading from 'package' to 'dependency', rather than just a shortest path
--arg <NAME> <EXPR> argument to be passed to Nix functions
--argstr <NAME> <STRING> string-valued argument to be passed to Nix functions
-f, --file <FILE> evaluate FILE rather than the default
-I, --include <PATH> add a path to the list of locations used to look up <...> file names
self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.extend (selfHS: superHS: {
generic-lens = dontCheck (selfHS.callHackage "generic-lens" "1.0.0.1" {});
taffybar = with self.haskell.lib; enableDWARFDebugging (enableExecutableProfiling (overrideSrc superHS.taffybar {
version = "master";
src = self.fetchFromGitHub {
owner = "taffybar";
repo = "taffybar";
rev = "6e6d3b4180e291f3555e796cfea95a24118f0426";
sha256 = "1xxw8wmy0jdqs42g9vr3wjblgq6x5skdlyzwf25hihb4r3wiq2r3";
let
overlay = self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.extend (selfHS: superHS: {
purescript = selfHS.callHackage "purescript" "0.12.0" {};
});
};
in
{ nixpkgs ? builtins.fetchTarball
https://releases.nixos.org/nixos/18.03/nixos-18.03.133157.fde20125199/nixexprs.tar.xz
, pkgs ? import nixpkgs { overlays = [ overlay ]; }
let
overlay = self: super: {
haskellPackages = with self.haskell.lib; super.haskellPackages.extend (selfHS: superHS: {
purescript = selfHS.callHackage "purescript" "0.12.0" {};
});
};
in
{ nixpkgs ? builtins.fetchTarball {
url = https://releases.nixos.org/nixos/18.03/nixos-18.03.133157.fde20125199/nixexprs.tar.xz;
sha256 = "06rj0v16nk8f75k426h70zwn5g7cscvkb7w83zdsnipc55a7nnmd";
(import (builtins.fetchTarball {
url = https://releases.nixos.org/nixos/18.03/nixos-18.03.133157.fde20125199/nixexprs.tar.xz;
sha256 = "06rj0v16nk8f75k426h70zwn5g7cscvkb7w83zdsnipc55a7nnmd";
}) {}).hello
*Graphics.Matplotlib.Internal Graphics.Matplotlib> /nix/store/qfkqaknhxn0hb4ffp9flj4vyi2hf5rd8-python3-3.6.6-env/lib/python3.6/site-packages/matplotlib/pyplot.py:969: UserWarning: Requested projection is different from current axis projection, creating new axis with requested projection.
return gcf().gca(**kwargs)
/nix/store/qfkqaknhxn0hb4ffp9flj4vyi2hf5rd8-python3-3.6.6-env/lib/python3.6/site-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
warnings.warn(message, mplDeprecation, stacklevel=1)