I hereby claim:
- I am tomberek on github.
- I am tomberek (https://keybase.io/tomberek) on keybase.
- I have a public key whose fingerprint is 8718 4F1C A00E AF3A 38E9 5DF8 E4DD 675E CF1D C4FC
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| bash |
| # Function which takes a list of packages to install and creates a | |
| # tarball which contains the full list of dependencies of those paths, | |
| # and a script which will install them. | |
| # | |
| # For example, here's how you would create a tarball packaging up | |
| # python3 and nodejs: | |
| # | |
| # | |
| # let | |
| # pkgs = import <nixpkgs> {}; |
| meta: | |
| id: catar | |
| file-extension: catar | |
| endian: le | |
| license: CC0-1.0 | |
| seq: | |
| - id: header | |
| type: ca_format | |
| repeat: eos | |
| types: |
| meta: | |
| id: catar | |
| file-extension: catar | |
| endian: le | |
| license: CC0-1.0 | |
| seq: | |
| - id: top | |
| type: ca_format | |
| instances: | |
| marker: |
| { pkgs ? import <nixpkgs> {} | |
| }: | |
| let | |
| nix = pkgs.nixUnstable; | |
| inherit (pkgs) stdenv; | |
| # TODO: config could be using nixos modules | |
| defaultConfig = { | |
| Env = [ |
| buildImageWithNixDb = args@{ contents ? null, extraCommands ? "", fromImage ? null, ... }: | |
| let | |
| # Use lazy evaluation to get list | |
| contentsList = image.contentsList; | |
| image = buildImage (args // { | |
| config = args.config // { | |
| Entrypoint = if args.config?Entrypoint then args.config.Entrypoint else "${entrypoint}/bin/entry"; | |
| Env = args.config.Env ++ [ | |
| "HOME=/root" | |
| "USER=root" |
| // Copyright 2017 Michal Witkowski. All Rights Reserved. | |
| // See LICENSE for licensing terms. | |
| // Modified Thomas Bereknyei | |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" |
| package main | |
| import "C" | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "github.com/gin-contrib/static" |
| { pkgs ? import <nixpkgs>{} }: | |
| let | |
| src = pkgs.fetchgit { | |
| fetchSubmodules = true; | |
| url = "https://github.com/notedit/media-server-go-native.git"; | |
| deepClone = true; | |
| rev = "4b84572c5b39f08e4dfaa44f0fe9e0c0f6b73e63"; | |
| sha256 = "sha256-+vrlixx8Z5RlKeafvBER7CClmMPNdEag3EFoeyWgTrs="; | |
| }; | |
| in |