mirror of
				https://codeberg.org/hako/Rosenthal.git
				synced 2025-11-04 03:34:37 +00:00 
			
		
		
		
	rosenthal: Add sops.
* modules/rosenthal/packages/password-utils.scm: New file.
This commit is contained in:
		
							parent
							
								
									bbfce5ba97
								
							
						
					
					
						commit
						0eb43ffea3
					
				
							
								
								
									
										69
									
								
								modules/rosenthal/packages/password-utils.scm
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								modules/rosenthal/packages/password-utils.scm
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,69 @@
 | 
			
		||||
;; SPDX-FileCopyrightText: 2025 Hilton Chain <hako@ultrarare.space>
 | 
			
		||||
;;
 | 
			
		||||
;; SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
(define-module (rosenthal packages password-utils)
 | 
			
		||||
  #:use-module (guix gexp)
 | 
			
		||||
  #:use-module ((guix licenses) #:prefix license:)
 | 
			
		||||
  #:use-module (guix packages)
 | 
			
		||||
  #:use-module (guix utils)
 | 
			
		||||
  #:use-module (guix download)
 | 
			
		||||
  #:use-module (guix git-download)
 | 
			
		||||
  #:use-module (rosenthal utils download)
 | 
			
		||||
  #:use-module (guix build-system go)
 | 
			
		||||
  #:use-module (gnu packages golang))
 | 
			
		||||
 | 
			
		||||
(define-public sops
 | 
			
		||||
  (package
 | 
			
		||||
    (name "sops")
 | 
			
		||||
    (version "3.10.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
 | 
			
		||||
                "0hnp08w7kcb30ki9h1jca5x0n9cmyxq4nxl00590l0aca32jgm11"))))
 | 
			
		||||
    (build-system go-build-system)
 | 
			
		||||
    (arguments
 | 
			
		||||
     (list #:go go-1.23
 | 
			
		||||
           #: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.23))
 | 
			
		||||
             (uri (package-source this-package))
 | 
			
		||||
             (file-name "vendored-go-dependencies")
 | 
			
		||||
             (sha256
 | 
			
		||||
              (base32
 | 
			
		||||
               "0xc73hy8cm5qsaakhmy3fm0ijh5akghva330c3vinjsm8hhd98gd")))))
 | 
			
		||||
    (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