Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Mulligan ryantm

View GitHub Profile
View gist:422df749e70871568d4c56b20421a764
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
addAttributeName = with lib; mapAttrs (a: v: v // {
text = ''
${v.text}
'';
});
in
with lib;
@ryantm
ryantm / .sops.yaml
Created Aug 28, 2020
DRY sops.yaml
View .sops.yaml
users:
- &ryantm 0000000000000000000000000000000000000000
systems:
- &nix-ryantm 0000000000000000000000000000000000000000
creation_rules:
- path_regex: blah.yaml
key_groups:
- pgp:
View gist:d7d25212d1352ead018fd2195a3400fe
these derivations will be built:
/nix/store/yd1s1x2wvzkjdli64ppm9a3wznbz7v5x-packages.json.drv
building '/nix/store/yd1s1x2wvzkjdli64ppm9a3wznbz7v5x-packages.json.drv'...
running post-build-hook '/nix/store/q56pid4rvlly41fn4q5hnmmd9860ylsf-post-build-hook.sh'...
post-build-hook: panic: runtime error: invalid memory address or nil pointer dereference
post-build-hook: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x5223a2]
post-build-hook:
post-build-hook: goroutine 1 [running]:
post-build-hook: main.RunClient(0x7ffc0443f8a3, 0x19, 0x0, 0x0)
post-build-hook: /build/go/src/github.com/nix-community/queued-build-hook/client.go:11 +0x82
View gist:1ecf8e738db3cc5002c8a1b3b3732fbe
$ ./ab9f2149647bc178d75f8157c8eec084e13daf775a2c8212004641017bddb034.sh
++ nix-store -r /nix/store/dhnspmn5hc312lm46a98w4n1bz27bp40-ghc-8.8.3
these paths will be fetched (134.19 MiB download, 1863.96 MiB unpacked):
/nix/store/dhnspmn5hc312lm46a98w4n1bz27bp40-ghc-8.8.3
/nix/store/jvkljrfxk8svpak297a0raqyrm10xq3h-ghc-8.8.3-doc
copying path '/nix/store/jvkljrfxk8svpak297a0raqyrm10xq3h-ghc-8.8.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/dhnspmn5hc312lm46a98w4n1bz27bp40-ghc-8.8.3' from 'https://cache.nixos.org'...
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/dhnspmn5hc312lm46a98w4n1bz27bp40-ghc-8.8.3
++ echo 0
View 20190114_nixpkgs-update.log
This file has been truncated, but you can view the full file.
2020-01-15T04:50:30 New run of ups.sh
2020-01-15T04:50:30 btrfs-progs 5.4 -> 5.4.1
2020-01-15T04:55:26 cachix "/nix/store/k7r6kcjsbay7y8r33v78nm8ddgd7zx2g-btrfs-progs-5.4.1"
2020-01-15T04:57:22 SUCCESS
2020-01-15T04:57:22 apache-felix 5.6.1 -> 6.0.3
2020-01-15T04:57:22 FAIL Update branch already on origin.
2020-01-15T04:57:23 batik 1.6 -> 1.12
View -
{ AMB-plugins = { homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; version = "0.8.1"; }; AgdaSheaves = { homepage = "https://github.com/jonsterling/Agda-Sheaves"; version = "8a06162a8f0f7df308458db91d720cf8f7345d69"; }; AgdaStdlib = { homepage = "http://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary"; version = "1.1"; }; CoinMP = { homepage = "https://projects.coin-or.org/CoinMP/"; version = "1.8.4"; }; EmptyEpsilon = { homepage = "https://daid.github.io/EmptyEpsilon/"; version = "2019.11.01"; }; FIL-plugins = { homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/ladspa/index.html"; version = "0.3.0"; }; Fabric = { homepage = "https://www.fabfile.org/"; version = "2.5.0"; }; LASzip = { homepage = "https://laszip.org"; version = "2.2.0"; }; MMA = { homepage = "http://www.mellowood.ca/mma/index.html"; version = "19.08"; }; PPSSPP = { homepage = "https://www.ppsspp.org/"; version = "1.9.3"; }; QmidiNet = { homepage = "http://qmidinet.sourceforge.net/"; versio
View gist:bf88b89f7eac126710a208b898b4d25f
[ryantm@home1:~/p]$ cd nixpkgs-update-github-releases/
[ryantm@home1:~/p/nixpkgs-update-github-releases]$ ls
loadMetaFromPath.nix main.py
[ryantm@home1:~/p/nixpkgs-update-github-releases]$ ./main.py
these derivations will be built:
/nix/store/3mfkyds29036s600bqcg7iwsg8afi11z-python3-3.7.5-env.drv
building '/nix/store/3mfkyds29036s600bqcg7iwsg8afi11z-python3-3.7.5-env.drv'...
created 270 symlinks in user environment
unpacking 'https://github.com/nixos/nixpkgs/archive/master.tar.gz'...
error: cannot convert a function to JSON
View default.nix
let
pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation rec {
pname = "my-library";
version = "0.0.0";
src = ./.;
buildInputs = with pkgs; [ caf ];
View -
16 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/man/man1
16 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/man
28 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/remmina/external_tools
236 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/remmina/ui
832 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/remmina/theme
4 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/remmina/res
1100 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/remmina
12 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/icons/hicolor/16x16/apps
12 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/icons/hicolor/16x16
12 /nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9/share/icons/hicolor/22x22/apps
View -
/nix/store/268jma31f1lmhjsfp0v1d7z6ynhpk3p2-remmina-1.3.9
├── bin
│   ├── gnome-session-remmina
│   ├── remmina
│   ├── remmina-file-wrapper
│   └── remmina-gnome
├── include
│   └── remmina
│   ├── plugin.h
│   ├── remmina_trace_calls.h
You can’t perform that action at this time.