summaryrefslogtreecommitdiff
path: root/modules/ryan-packages/binaries.bak
blob: fcda5dee84db3ec2381a8f273fb1c45e909625c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
(define-module (ryan-packages binaries)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system copy)
  #:use-module (gnu packages base)
  #:use-module (gnu packages bootstrap)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages elf)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages glib))

(define-public superfile-bin
  (package
    (name "superfile-bin")
    (version "1.1.2")
    (source (origin
              (method url-fetch)
              (uri (string-append
                     "https://github.com/yorukot/superfile" "/releases/download/v"
                     version "/superfile-linux-v" version "-amd64.tar.gz"))
              (sha256
                (base32
                  "1hnhkd6ihp0wcrn54ipyki500xmz1kapaj8sykg7ykh1vv8y6hmm"))))
    (build-system copy-build-system)
    (arguments
      (list #:install-plan #~'((#$(string-append
                                    "superfile-linux-v" (package-version this-package) "-amd64/spf")
                                "bin/spf"))
            #:phases
            #~(modify-phases %standard-phases
                             (delete 'strip)
                             (add-after 'install 'patch-elf
                                        (lambda _
                                          (let ((spf (string-append #$output "/bin/spf")))
                                            (invoke "patchelf" "--set-interpreter"
                                                    (string-append #$(this-package-input "glibc")
                                                                   #$(glibc-dynamic-linker))
                                                    spf)
                                            (invoke "patchelf" "--set-rpath"
                                                    (string-append (ungexp (this-package-input "gcc")
                                                                           "lib")
                                                                   "/lib")
                                                                   spf)))))))
    (supported-systems '("x86_64-linux"))
    (native-inputs (list patchelf))
    (inputs (list `(,gcc "lib") glibc))
    (home-page "https://github.com/yorukot/superfile")
    (synopsis "Pretty fancy and modern terminal file manager")
    (description
      "Terminal file-manager written in Go that is modern and extensible.")
    (license license:expat)))

(define-public brave-bin
  (package
    (name "brave-bin")
    (version "nightly_1.72.12")
    (source (origin
              (method url-fetch)
              (url (string-append "https://github.com/brave/brave-browser/releases/download/v1.72.12/brave-browser-" version "_amd64.deb"))
              (sha256
                (base32
                  "1ry62ck61gn4bxnkih3775pdlndp2ldxwifbjkxbj3wfd4f67xiv"))))
    (build-system copy-build-system)
    (arguments
      (list #:install-plan
            #~'(("bin" "bin" #:include ("wrap