Skip to content

Instantly share code, notes, and snippets.

View savannidgerinel's full-sized avatar

Savanni D'Gerinel savannidgerinel

View GitHub Profile
@savannidgerinel
savannidgerinel / console
Created March 11, 2021 03:04
Electron locales, showing that electron does not allow "eo" through to the app.
[electron-app-shell-env] savanni@garnet:~/s/electron-app $ locale
LANG=eo.UTF-8
LC_CTYPE="eo.UTF-8"
LC_NUMERIC="eo.UTF-8"
LC_TIME="eo.UTF-8"
LC_COLLATE="eo.UTF-8"
LC_MONETARY="eo.UTF-8"
LC_MESSAGES="eo.UTF-8"
LC_PAPER="eo.UTF-8"
LC_NAME="eo.UTF-8"
@savannidgerinel
savannidgerinel / Root directory listing
Last active March 10, 2024 21:31
Nix setup for a Golang dev environment
[go-shell] savanni@lapis:~/src/golang $ ls -l
total 81928
drwxr-xr-x 5 savanni staff 160 Dec 17 2018 bin
drwxr-xr-x 4 savanni staff 128 Jun 11 2018 pkg
-rw-r--r-- 1 savanni staff 923 Jun 11 2018 shell.nix
drwxr-xr-x 9 savanni staff 288 Jun 10 2018 src
{ pkgs ? import <nixos> {}
, fetchurl ? pkgs.fetchurl
, buildFHS ? pkgs.buildFHSUserEnv
, mkDerivation ? pkgs.stdenv.mkDerivation
}:
let
pkgUrl = "https://nodejs.org/dist/v8.4.0/node-v8.4.0-linux-x64.tar.xz";
pkgSha = "7fd86abad06f96cb2f889c2a0e25686a3de3e9a078ad946ded91ee4f28d8218a";
in rec {
node-env = mkDerivation {
@savannidgerinel
savannidgerinel / default.nix
Created November 22, 2017 18:34
pytags -- a ctags script that seems to generate a goodly amount of information about python
{ pkgs ? import <nixpkgs> {}
, ctags ? pkgs.ctags
, makeWrapper ? pkgs.makeWrapper
, makeBinPath ? pkgs.lib.makeBinPath
}:
pkgs.stdenv.mkDerivation {
name = "pytags";
buildInputs = [ ctags
makeWrapper
./configure --target=arm-linux-gnueabihf --prefix=<nix path> --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c
@savannidgerinel
savannidgerinel / diff
Last active September 13, 2017 14:03
Failure on `nix-shell -p nox --run "nox-review wip"`
diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix
index d3b4068319..4a227436d0 100644
--- a/pkgs/development/haskell-modules/hackage-packages.nix
+++ b/pkgs/development/haskell-modules/hackage-packages.nix
@@ -178206,7 +178206,7 @@ self: {
}) {applicative = null;};
"statgrab" = callPackage
- ({ mkDerivation, async, base, bytestring, statgrab, time
+ ({ mkDerivation, async, base, bytestring, libstatgrab, time
@savannidgerinel
savannidgerinel / default.nix
Created September 12, 2017 02:20
Problems getting a system dependency into a haskell nix derivation
{ pkgs ? import <nixos> {}
, compiler ? "ghc7103"
, libstatgrab ? pkgs.libstatgrab
, zlib ? pkgs.zlib
}:
let
systemstats = pkgs.haskell.packages.${compiler}.callPackage ./systemstats.nix { libstatgrab = libstatgrab; };
in pkgs.stdenv.mkDerivation rec {
name = "systemstats";
version = "0.2.0";
savanni@lapis:~/src/nixpkgs (master)* $ heroku apps
Usage: heroku COMMAND [--app APP] [command-specific-options]
Help topics, type "heroku help TOPIC" for more details:
heroku access # CLI to manage access in Heroku Applications
heroku addons # manage add-ons
heroku apps # manage apps
heroku auth # authentication (login/logout)
heroku buildpacks # manage the buildpacks for an app
Prelude ...> t <- forkIO $ catch (catchError (threadDelay 10000000 >> putStrLn "thread finished") (\err -> putStrLn $ "error detected: " <> show err)) (\(err :: AsyncException) -> putStrLn $ "async exception" <> show err)
Prelude ...> killThread t
asynPrelude ...> c exceptionthread killed
Prelude ...>
@savannidgerinel
savannidgerinel / purescript.nix
Created February 4, 2017 00:40
A .nix file for building whatever version of purescript you want from the github releases
{ env, pkgs, ghc }:
let
pname = "purescript";
pversion = "0.10.3";
url = "https://github.com/purescript/purescript/archive/v${pversion}.tar.gz";
sha256 = "46c3f695ccc6e7be3cb2afe1ea9586eafdf51a04f1d40fe7240def0d8693ca68";
in env.mkDerivation rec {
name = pname;
version = pversion;