Compare commits

...

15 Commits

Author SHA1 Message Date
Adam Mohammed
a6f6784ee4 emacs-xyz: fix build inputs 2025-02-11 15:49:06 -05:00
Adam Mohammed
9f6cf07120 emacs-xyz: add emacs-rego-mode 2025-02-11 15:18:22 -05:00
Adam Mohammed
18d9a5527b Fix rufo hash 2024-10-30 11:14:45 -04:00
0a67c2c8fb Upgrade emacs-rufo 2024-08-16 06:37:44 -04:00
62f8d60132 Add caddyfile-mode 2024-07-01 22:47:13 -04:00
11bd3caa1f Fixed guix build on the equinix-scm repo 2024-06-09 15:58:08 -04:00
76415063b7 Fix a typo 2024-06-09 11:01:12 -04:00
8f222e34da more sdk 2024-06-09 10:57:11 -04:00
231735d81d try this 2024-06-07 23:59:13 -04:00
12115417fe tweaks 2024-06-07 23:41:41 -04:00
782a4f4bd9 Add my new equinix guile package 2024-06-07 23:20:18 -04:00
90bdd6ff4d Add kubectx, kubens, kubectl-oidc_login 2024-02-11 13:37:50 -05:00
1cbdf02206 Add jq 2024-02-11 13:14:30 -05:00
536f02f46d Add yq package 2024-02-11 13:08:30 -05:00
ba60f0e0b4 Fix kubectl definition 2024-02-11 13:08:21 -05:00
5 changed files with 187 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
(channel
(version 0)
(url "git.fixergrid.net/adam/adam-guix.git"))

View File

@@ -1,7 +1,9 @@
(define-module (adam packages emacs-xyz)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system emacs)
#:use-module (gnu packages emacs-xyz)
#:use-module ((guix licenses) #:prefix license:))
@@ -13,8 +15,10 @@
(method url-fetch)
(uri (string-append "https://stable.melpa.org/packages/rufo-"
version ".tar"))
;; I had to change the hash previously because it changed on melpa
;; I wonder if it change when melpa upgrades packages
(sha256 (base32
"0z46yllbf6h08i042718p4cbd2d96crlqw7pihvq8b1iymb709f4"))))
"1jgdv0r1zhqf74ca0vrax16yhv4n27pk8kbs6nq1h5axx96i2dnb"))))
(build-system emacs-build-system)
(home-page "https://github.com/danielma/rufo.el")
(synopsis "use rufo to automatically format ruby files")
@@ -25,4 +29,39 @@ saved. To use it, require it, make sure `rufo is in your path and add it to
your favorite ruby mode: (add-hook ruby-mode-hook #'rufo-minor-mode)")
(license license:gpl3+)))
(define-public emacs-caddyfile-mode
(package
(name "emacs-caddyfile-mode")
(version "0.2.0-fc41148f5a7eb320f070666f046fb9d88cf17680")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Schnouki/caddyfile-mode")
(commit "fc41148f5a7eb320f070666f046fb9d88cf17680")))
(sha256
(base32 "1s9kbav5wbyividn9zncd153h89nil0i9aj9hgxa95q9fy84r23w"))))
(build-system emacs-build-system)
(propagated-inputs (list
emacs-loop))
(home-page "https://github.com/Schnouki/caddyfile-mode")
(synopsis "Syntax highlighting for Caddyfile")
(description "This package provides syntax highlighting for Caddyfiles")
(license #f)))
(define-public emacs-rego-mode
(package
(name "emacs-rego-mode")
(version "0.0.0-be110e6c")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/adammohammed/rego-mode")
(commit "be110e6cef5d34eef0529a8739c68e619cf15310")))
(sha256
(base32 "1lm53zg30n96bq8z5g836dhk0y02njdyp8c6vjgsrcii4ff42jp5"))))
(build-system emacs-build-system)
(inputs (list emacs-reformatter))
(home-page "https://github.com/adammohammed/rego-mode")
(synopsis "Emacs major mode for OPA's rego language")
(description "")
(license license:gpl3+)))

View File

@@ -0,0 +1,30 @@
(define-module (adam packages guile-contrib)
#:use-module (gnu packages)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages guile)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system guile))
(define-public guile-equinix-metal
(package
(name "guile-equinix-metal")
(version "0.0.5")
(source (origin
(method url-fetch)
(uri (string-append "https://git.fixegrid.net/adam/equinix-scm/archive/v"
version ".tar.gz"))
(sha256
(base32
"0fmbily7grv4jyfbs5lswxp94nxbpd8k1zfhhnk4m6ybprzi3ly8"))))
(build-system guile-build-system)
(arguments
(list #:source-directory "src"))
(native-inputs (list pkg-config guile-3.0))
(inputs (list guile-3.0 guile-json-4))
(synopsis "Equinix Metal SDK")
(home-page "https://git.fixergrid.net/adam/equinix-scm")
(description "Equinix-scm supports token exchange and talking to Metal API")
(license #f)))

View File

@@ -2,6 +2,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system copy)
#:use-module (gnu packages compression)
#:use-module ((guix licenses) #:prefix license:))
(define-public kubectl
@@ -15,13 +16,74 @@
(sha256 (base32 "1qx7gb6gavc4nj98przr7vaa5hafp4zgblsdccvgs68ic7h1ydf8"))))
(build-system copy-build-system)
(arguments
`(#:phases (modify-phases %standard-phases)
(add-after 'unpack 'chmod
(lambda* (#:key #:allow-other-keys)
(cmod "kubectl" #o755)))
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'chmod
(lambda* (#:key #:allow-other-keys)
(chmod "kubectl" #o755))))
#:substitutable? #f
#:install-plan '(("kubectl" "/bin/"))))
(synopsis "kubectl binary")
(description "kubectl binary")
(home-page "https://github.com/kubernetes/kubernetes")
(license license:asl2.0)))
;; https://github.com/ahmetb/kubectx/releases/download/v0.9.5/kubectx_v0.9.5_linux_x86_64.tar.gz
(define-public kubectx
(package
(name "kubectx")
(version "0.9.5")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/ahmetb/kubectx/releases/download/v" version
"/kubectx_v" version "_linux_x86_64.tar.gz"))
(sha256 (base32 "0j06sq6lx0nk6sckrxm308gm2wkiklvp708fvnmqk7z74gypy952"))))
(build-system copy-build-system)
(arguments
`(#:substitutable? #f
#:install-plan '(("kubectx" "/bin/ktx"))))
(synopsis "kube context switcher")
(description "kube context switcher")
(home-page "https://github.com/ahmetb/kubectx")
(license license:asl2.0)))
(define-public kubens
(package
(name "kubens")
(version "0.9.5")
(source
(origin
(method url-fetch)
(uri (string-append
"https://github.com/ahmetb/kubectx/releases/download/v" version
"/kubens_v" version "_linux_x86_64.tar.gz"))
(sha256 (base32 "1ficf219wqlnp554373b8cc5scx7hkkx0pfjzbjzn8mpyv3skhdc"))))
(build-system copy-build-system)
(arguments
`(#:substitutable? #f
#:install-plan '(("kubens" "/bin/kns"))))
(synopsis "kube context namespace switcher")
(description "kube context namespace switcher")
(home-page "https://github.com/ahmetb/kubectx")
(license license:asl2.0)))
;; https://github.com/int128/kubelogin/releases/download/v1.28.0/kubelogin_linux_amd64.zip
(define-public kube-oidc-login
(package
(name "kube-oidc-login")
(version "1.28.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/int128/kubelogin/releases/download/v" version "/kubelogin_linux_amd64.zip"))
(sha256 (base32 "17p8apx47s23gv0nvpjn5b8blb13wk3h1dpd8qmy63n7zi422a43"))))
(build-system copy-build-system)
(inputs (list unzip))
(arguments
`(#:substitutable? #f
#:install-plan '(("kubelogin" "/bin/kubectl-oidc_login"))))
(synopsis "kubenetes oidc login plugin")
(description "kubenetes oidc login plugin")
(home-page "https://github.com/int128/kubelogin")
(license license:asl2.0)))

51
adam/packages/markups.scm Normal file
View File

@@ -0,0 +1,51 @@
(define-module (adam packages markups)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system copy)
#:use-module ((guix licenses) #:prefix license:))
;;https://github.com/mikefarah/yq/releases/download/v4.40.7/yq_linux_amd64
(define-public yq
(package
(name "yq")
(version "4.40.7")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/mikefarah/yq/releases/download/v" version "/yq_linux_amd64"))
(sha256 (base32 "1va8ky7ipsnp226amyldmqhcjz7009scing7c67px7x40f9yw4sg"))))
(build-system copy-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'chmod
(lambda* (#:key #:allow-other-keys)
(chmod "yq_linux_amd64" #o755))))
#:substitutable? #f
#:install-plan '(("yq_linux_amd64" "/bin/yq"))))
(synopsis "Yaml parser")
(description "Yaml parser")
(home-page "https://github.com/mikefarah/yq")
(license license:expat)))
;; https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64
(define-public jq
(package
(name "jq")
(version "1.7.1")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/jqlang/jq/releases/download/jq-" version "/jq-linux-amd64"))
(sha256 (base32 "1xcgkk8q32y5sy9km4wkvy82bzmky5rh5qxk3vk0wlafjfqcjhjr"))))
(build-system copy-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(add-after 'unpack 'chmod
(lambda* (#:key #:allow-other-keys)
(chmod "jq-linux-amd64" #o755))))
#:substitutable? #f
#:install-plan '(("jq-linux-amd64" "/bin/jq"))))
(synopsis "JSON parser")
(description "JSON parser")
(home-page "https://github.com/jqlang/jq")
(license license:expat)))