diff options
| author | vin <git@vineetk.net> | 2025-07-23 16:09:16 -0400 |
|---|---|---|
| committer | vin <git@vineetk.net> | 2025-07-23 16:09:16 -0400 |
| commit | ac28f7e59f8593dd34b6155957bb1e1b3fa52975 (patch) | |
| tree | 8cc35b31357c7f97a33dd4babc0386ad1461832b | |
| parent | 48f7d54ab6df2acc51b679e44695bc76ee581696 (diff) | |
modify guix's st and dwm
just doing inherit didn't really work when changing the source
| -rw-r--r-- | epistemia/packages/suckless.scm | 94 |
1 files changed, 90 insertions, 4 deletions
diff --git a/epistemia/packages/suckless.scm b/epistemia/packages/suckless.scm index b9bdcc9..957458d 100644 --- a/epistemia/packages/suckless.scm +++ b/epistemia/packages/suckless.scm | |||
| @@ -1,9 +1,95 @@ | |||
| 1 | (define-module (epistemia packages suckless) | 1 | (define-module (epistemia packages suckless) |
| 2 | #:use-module (gnu packages suckless) | 2 | #:use-module (gnu packages fontutils) |
| 3 | #:use-module (gnu packages ncurses) | ||
| 4 | #:use-module (gnu packages pkg-config) | ||
| 5 | #:use-module (gnu packages xorg) | ||
| 6 | #:use-module (guix build-system gnu) | ||
| 7 | #:use-module (guix gexp) | ||
| 8 | #:use-module (guix git-download) | ||
| 9 | #:use-module ((guix licenses) #:prefix license:) | ||
| 10 | #:use-module (guix packages) | ||
| 11 | #:use-module (guix utils) | ||
| 3 | #:export (vin-dwm)) | 12 | #:export (vin-dwm)) |
| 4 | 13 | ||
| 5 | (define-public vin-dwm | 14 | (define-public vin-dwm |
| 6 | (package | 15 | (package |
| 7 | (inherit dwm) | 16 | (name "vin-dwm") |
| 8 | (name "dwm") | 17 | (version "6.5") |
| 9 | (source (local-file "dwm" #:recursive? #t)))) | 18 | (source |
| 19 | (origin | ||
| 20 | (method git-fetch) | ||
| 21 | (uri (git-reference | ||
| 22 | (url "/data/src/private/suckless/dwm") | ||
| 23 | (commit "904dc786815d3530f76e62ba3af4736e83370870"))) | ||
| 24 | (file-name (git-file-name name version)) | ||
| 25 | (sha256 | ||
| 26 | (base32 "1q07dnw33zr14nnih4ldx1aqmg5dxvp8fvj3qa0fi3qy312pfhfg")))) | ||
| 27 | (build-system gnu-build-system) | ||
| 28 | (arguments | ||
| 29 | `(#:tests? #f | ||
| 30 | #:make-flags (list (string-append "FREETYPEINC=" | ||
| 31 | (assoc-ref %build-inputs "freetype") | ||
| 32 | "/include/freetype2")) | ||
| 33 | #:phases | ||
| 34 | (modify-phases %standard-phases | ||
| 35 | (replace 'configure | ||
| 36 | (lambda _ | ||
| 37 | (substitute* "Makefile" (("\\$\\{CC\\}") "gcc")) | ||
| 38 | #t)) | ||
| 39 | (replace 'install | ||
| 40 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 41 | (let ((out (assoc-ref outputs "out"))) | ||
| 42 | (invoke "make" "install" | ||
| 43 | (string-append "DESTDIR=" out) "PREFIX="))))))) | ||
| 44 | (inputs | ||
| 45 | (list freetype libx11 libxft libxinerama)) | ||
| 46 | (home-page "https://dwm.suckless.org/") | ||
| 47 | (synopsis "Dynamic window manager") | ||
| 48 | (description | ||
| 49 | "dwm is a dynamic window manager for X. It manages windows in tiled, | ||
| 50 | monocle and floating layouts. All of the layouts can be applied dynamically, | ||
| 51 | optimising the environment for the application in use and the task performed.") | ||
| 52 | (license license:x11))) | ||
| 53 | |||
| 54 | (define-public vin-st | ||
| 55 | (package | ||
| 56 | (name "vin-st") | ||
| 57 | (version "0.9.2") | ||
| 58 | (source | ||
| 59 | (origin | ||
| 60 | (method git-fetch) | ||
| 61 | (uri (git-reference | ||
| 62 | (url "/data/src/private/suckless/st") | ||
| 63 | (commit "0b6ef824637c77e00b26369bfe77c3e3311f7eed"))) | ||
| 64 | (file-name (git-file-name name version)) | ||
| 65 | (sha256 | ||
| 66 | (base32 "0ylqaarkkrqx26aiqcz4nhp68k6dmrqbhn7knx10d9j7v1vpjcnh")))) | ||
| 67 | (build-system gnu-build-system) | ||
| 68 | (arguments | ||
| 69 | `(#:tests? #f ; no tests | ||
| 70 | #:make-flags | ||
| 71 | (list (string-append "CC=" ,(cc-for-target)) | ||
| 72 | (string-append "TERMINFO=" | ||
| 73 | (assoc-ref %outputs "out") | ||
| 74 | "/share/terminfo") | ||
| 75 | (string-append "PREFIX=" %output)) | ||
| 76 | #:phases | ||
| 77 | (modify-phases %standard-phases | ||
| 78 | (delete 'configure)))) | ||
| 79 | (inputs | ||
| 80 | `(("libx11" ,libx11) | ||
| 81 | ("libxft" ,libxft) | ||
| 82 | ("fontconfig" ,fontconfig) | ||
| 83 | ("freetype" ,freetype))) | ||
| 84 | (native-inputs | ||
| 85 | (list ncurses ;provides tic program | ||
| 86 | pkg-config)) | ||
| 87 | (home-page "https://st.suckless.org/") | ||
| 88 | (synopsis "Simple terminal emulator") | ||
| 89 | (description | ||
| 90 | "St implements a simple and lightweight terminal emulator. It | ||
| 91 | implements 256 colors, most VT10X escape sequences, utf8, X11 copy/paste, | ||
| 92 | antialiased fonts (using fontconfig), fallback fonts, resizing, and line | ||
| 93 | drawing.") | ||
| 94 | (license (list license:x11 | ||
| 95 | license:expat)))) | ||
