mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
gnu: btrfs-progs: Add "static" output.
* gnu/packages/linux.scm (btrfs-progs)[outputs]: New field. [inputs]: Add "static" outputs of util-linux for libuuid and libblkid. [arguments]: Add 'build-static' and 'install-static' phases. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
dd581e9ab3
commit
7cad981dfc
1 changed files with 15 additions and 1 deletions
|
@ -2509,12 +2509,26 @@ (define-public btrfs-progs
|
||||||
(base32
|
(base32
|
||||||
"1z5882zx9jx02vyg067siws0irsl8pg37myx17hr4imn9ypf6r4r"))))
|
"1z5882zx9jx02vyg067siws0irsl8pg37myx17hr4imn9ypf6r4r"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(outputs '("out"
|
||||||
|
"static")) ; static versions of binaries in "out" (~16MiB!)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "test"
|
'(#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'build 'build-static
|
||||||
|
(lambda _ (zero? (system* "make" "static"))))
|
||||||
|
(add-after 'install 'install-static
|
||||||
|
(let ((staticbin (string-append (assoc-ref %outputs "static")
|
||||||
|
"/bin")))
|
||||||
|
(lambda _
|
||||||
|
(zero? (system* "make"
|
||||||
|
(string-append "bindir=" staticbin)
|
||||||
|
"install-static"))))))
|
||||||
|
#:test-target "test"
|
||||||
#:parallel-tests? #f)) ; tests fail when run in parallel
|
#:parallel-tests? #f)) ; tests fail when run in parallel
|
||||||
(inputs `(("e2fsprogs" ,e2fsprogs)
|
(inputs `(("e2fsprogs" ,e2fsprogs)
|
||||||
("libblkid" ,util-linux)
|
("libblkid" ,util-linux)
|
||||||
|
("libblkid:static" ,util-linux "static")
|
||||||
("libuuid" ,util-linux)
|
("libuuid" ,util-linux)
|
||||||
|
("libuuid:static" ,util-linux "static")
|
||||||
("zlib" ,zlib)
|
("zlib" ,zlib)
|
||||||
("lzo" ,lzo)))
|
("lzo" ,lzo)))
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)
|
(native-inputs `(("pkg-config" ,pkg-config)
|
||||||
|
|
Loading…
Reference in a new issue