mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-05-19 07:20:20 +00:00
Compare commits
2 Commits
4811a4f315
...
d549c64015
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d549c64015 | ||
|
|
6517fe1c32 |
@ -14,37 +14,45 @@
|
|||||||
home-gtk3-service-type
|
home-gtk3-service-type
|
||||||
home-gtk4-service-type))
|
home-gtk4-service-type))
|
||||||
|
|
||||||
(define home-gtk2-environment-variables
|
(define (home-gtk2-environment-variables config)
|
||||||
;; https://wiki.archlinux.org/title/XDG_Base_Directory
|
(if (null? config)
|
||||||
'(("GTK2_RC_FILES" . "$XDG_CONFIG_HOME/gtk-2.0/gtkrc")))
|
'()
|
||||||
|
;; https://wiki.archlinux.org/title/XDG_Base_Directory
|
||||||
|
'(("GTK2_RC_FILES" . "$XDG_CONFIG_HOME/gtk-2.0/gtkrc"))))
|
||||||
|
|
||||||
(define (home-gtk2-xdg-configuration-files config)
|
(define (home-gtk2-xdg-configuration-files config)
|
||||||
`(("gtk-2.0/gtkrc"
|
(if (null? config)
|
||||||
,(computed-file "gtkrc"
|
'()
|
||||||
#~(begin
|
`(("gtk-2.0/gtkrc"
|
||||||
(use-modules (ice-9 match))
|
,(computed-file "gtkrc"
|
||||||
(call-with-output-file #$output
|
#~(begin
|
||||||
(lambda (port)
|
(use-modules (ice-9 match))
|
||||||
(for-each (match-lambda
|
(call-with-output-file #$output
|
||||||
((key . val)
|
(lambda (port)
|
||||||
(format port "~a = ~a~%" key val)))
|
(for-each (match-lambda
|
||||||
'#$config))))
|
((key . val)
|
||||||
#:options '(#:substitutable? #f)))))
|
(format port "~a = ~a~%" key val)))
|
||||||
|
'#$config))))
|
||||||
|
#:options '(#:substitutable? #f))))))
|
||||||
|
|
||||||
(define (home-gtk3-xdg-configuration-files config)
|
(define (home-gtk3-xdg-configuration-files config)
|
||||||
`(("gtk-3.0/settings.ini"
|
(if (null? config)
|
||||||
,(ini-file "settings.ini" #~'(("Settings" #$@config))))))
|
'()
|
||||||
|
`(("gtk-3.0/settings.ini"
|
||||||
|
,(ini-file "settings.ini" #~'(("Settings" #$@config)))))))
|
||||||
|
|
||||||
(define (home-gtk4-xdg-configuration-files config)
|
(define (home-gtk4-xdg-configuration-files config)
|
||||||
`(("gtk-4.0/settings.ini"
|
(if (null? config)
|
||||||
,(ini-file "settings.ini" #~'(("Settings" #$@config))))))
|
'()
|
||||||
|
`(("gtk-4.0/settings.ini"
|
||||||
|
,(ini-file "settings.ini" #~'(("Settings" #$@config)))))))
|
||||||
|
|
||||||
(define home-gtk2-service-type
|
(define home-gtk2-service-type
|
||||||
(service-type
|
(service-type
|
||||||
(name 'home-gtk2)
|
(name 'home-gtk2)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension home-environment-variables-service-type
|
(list (service-extension home-environment-variables-service-type
|
||||||
(const home-gtk2-environment-variables))
|
home-gtk2-environment-variables)
|
||||||
(service-extension home-xdg-configuration-files-service-type
|
(service-extension home-xdg-configuration-files-service-type
|
||||||
home-gtk2-xdg-configuration-files)))
|
home-gtk2-xdg-configuration-files)))
|
||||||
(compose concatenate)
|
(compose concatenate)
|
||||||
|
|||||||
@ -15,58 +15,3 @@
|
|||||||
#:use-module (guix build-system go)
|
#:use-module (guix build-system go)
|
||||||
;; Guix packages
|
;; Guix packages
|
||||||
#:use-module (gnu packages golang))
|
#:use-module (gnu packages golang))
|
||||||
|
|
||||||
(define-public sops
|
|
||||||
(package
|
|
||||||
(name "sops")
|
|
||||||
(version "3.12.2")
|
|
||||||
(source (origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://github.com/getsops/sops")
|
|
||||||
(commit (string-append "v" version))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"01w67iv0v9hnxgaklixk871dwnhyhllm3zz36iiwqsd19d5rllfm"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
(list #:go go-1.26
|
|
||||||
#:install-source? #f
|
|
||||||
#:import-path "./cmd/sops"
|
|
||||||
#:build-flags
|
|
||||||
#~(list (string-append
|
|
||||||
"-ldflags="
|
|
||||||
"-X github.com/getsops/sops/v3/version.Version="
|
|
||||||
#$(package-version this-package)))
|
|
||||||
#:modules
|
|
||||||
'(((guix build gnu-build-system) #:prefix gnu:)
|
|
||||||
(guix build go-build-system)
|
|
||||||
(guix build utils))
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(replace 'unpack
|
|
||||||
(lambda args
|
|
||||||
(unsetenv "GO111MODULE")
|
|
||||||
(apply (assoc-ref gnu:%standard-phases 'unpack) args)
|
|
||||||
(copy-recursively
|
|
||||||
#+(this-package-native-input "vendored-go-dependencies")
|
|
||||||
"vendor")))
|
|
||||||
(replace 'install-license-files
|
|
||||||
(assoc-ref gnu:%standard-phases 'install-license-files)))))
|
|
||||||
(native-inputs
|
|
||||||
(list (origin
|
|
||||||
(method (go-mod-vendor #:go go-1.26))
|
|
||||||
(uri (package-source this-package))
|
|
||||||
(file-name "vendored-go-dependencies")
|
|
||||||
(sha256
|
|
||||||
(base32
|
|
||||||
"1gd5kpiqizrab7fbhzhwj5lm1b6wmpvwpvnrwwz0xkfn6hqwj1qy")))))
|
|
||||||
(home-page "https://getsops.io/")
|
|
||||||
(synopsis "Simple and flexible tool for managing secrets")
|
|
||||||
(description
|
|
||||||
"@acronym{SOPS, Secrets OPerationS} is an editor of encrypted files that
|
|
||||||
supports YAML, JSON, ENV, INI and binary formats and encrypts with @acronym{AWS
|
|
||||||
KMS, Amazon Web Services Key Management Service}, @acronym{GCP KMS, Google Cloud
|
|
||||||
Platform Key Management Service}, Azure Key Vault, @code{age}, and OpenPGP.")
|
|
||||||
(license license:mpl2.0)))
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user