Saving my dev environments
This commit is contained in:
19
packet-api/README.md
Normal file
19
packet-api/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# This is my development environment for packet-api
|
||||
|
||||
|
||||
# .envrc
|
||||
|
||||
```bash
|
||||
eval $(guix shell --search-paths)
|
||||
GITHUB_TOKEN="admohammed:<INSERT YOUR GITHUB TOKEN>"
|
||||
COMPOSE_PROJECT_NAME=metal
|
||||
export BUNDLE_RUBYGEMS__PKG__GITHUB__COM=$GITHUB_TOKEN
|
||||
export BUNDLE_GITHUB__COM=$GITHUB_TOKEN
|
||||
export GEM_HOME=$PWD/.gems
|
||||
export GEM_PATH=$GEM_HOME/gems:$GEM_PATH
|
||||
export PATH=$GEM_HOME/bin:$PATH
|
||||
export RUBYLIB=$GUIX_ENVIRONMENT/lib:$GUIX_ENVIRONMENT/lib/ruby/site_ruby
|
||||
export SSL_CERT_DIR=$GUIX_PROFILE/etc/ssl/certs
|
||||
export SSL_CERT_FILE=$GUIX_PROFILE/etc/ssl/certs/ca-certificates.crt
|
||||
export GIT_SSL_CAINFO="$SSL_CERT_FILE"
|
||||
```
|
||||
55
packet-api/guix.scm
Normal file
55
packet-api/guix.scm
Normal file
@@ -0,0 +1,55 @@
|
||||
(use-modules (guix packages)
|
||||
(guix download)
|
||||
(guix utils)
|
||||
(guix licenses)
|
||||
(guix build-system gnu)
|
||||
(gnu packages version-control)
|
||||
(gnu packages compression)
|
||||
(gnu packages databases)
|
||||
(gnu packages icu4c)
|
||||
(gnu packages libffi)
|
||||
(gnu packages linux)
|
||||
(gnu packages ssh)
|
||||
(gnu packages ruby)
|
||||
(gnu packages rails)
|
||||
(gnu packages curl)
|
||||
(gnu packages xml))
|
||||
|
||||
(define my-ruby (package
|
||||
(inherit ruby-2.7)
|
||||
(name "my-ruby-3.0")
|
||||
(version "3.0.6")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
|
||||
(version-major+minor version)
|
||||
"/ruby-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1lfvgm6jbspmwmc3haww83l1l8vl1airzi08ljrcz19dws9yxjxm"))))
|
||||
(inputs
|
||||
(modify-inputs (package-inputs ruby-2.7)
|
||||
(replace "openssl-1.1" openssl)))))
|
||||
|
||||
(package
|
||||
(name "packet-api")
|
||||
(version "0.0.4-git")
|
||||
(source #f)
|
||||
(build-system gnu-build-system)
|
||||
(inputs
|
||||
(list my-ruby
|
||||
git
|
||||
openssh
|
||||
libxml2
|
||||
icu4c
|
||||
curl
|
||||
strace))
|
||||
(propagated-inputs
|
||||
(list my-ruby
|
||||
git
|
||||
postgresql-15))
|
||||
(synopsis "")
|
||||
(description "")
|
||||
(home-page "")
|
||||
(license #f))
|
||||
Reference in New Issue
Block a user