diff options
author | David Craven <david@craven.ch> | 2016-11-30 19:34:31 +0100 |
---|---|---|
committer | David Craven <david@craven.ch> | 2017-01-10 12:00:34 +0100 |
commit | f3e44f5cd0a55304ab6058b87eb5a72a756f1fc9 (patch) | |
tree | 55d359c79e0ef065827c92745217842ee7ebe3a1 /gnu/packages/linux.scm | |
parent | ab4e939c50b579eaee634c7c90c600f9c9f3aa3f (diff) | |
download | patches-f3e44f5cd0a55304ab6058b87eb5a72a756f1fc9.tar patches-f3e44f5cd0a55304ab6058b87eb5a72a756f1fc9.tar.gz |
gnu: Add btrfs-progs/static.
* gnu/packages/linux.scm (btrfs-progs/static): New variable.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r-- | gnu/packages/linux.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 6b5523165a..a513816d46 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2746,6 +2746,36 @@ easy administration.") ;; GPL2: Everything else. (license (list license:gpl2 license:gpl2+)))) +(define-public btrfs-progs/static + (package + (name "btrfs-progs-static") + (version (package-version btrfs-progs)) + (source #f) + (build-system trivial-build-system) + (inputs + `(("btrfs-progs:static" ,btrfs-progs "static"))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils) + (ice-9 ftw) + (srfi srfi-26)) + + (let* ((btrfs (assoc-ref %build-inputs "btrfs-progs:static")) + (out (assoc-ref %outputs "out")) + (source (string-append btrfs "/bin/btrfs.static")) + (target (string-append out "/bin/btrfs"))) + (mkdir-p (dirname target)) + (copy-file source target) + (remove-store-references target) + (chmod target #o555))))) + (home-page (package-home-page btrfs-progs)) + (synopsis "Statically-linked btrfs command from btrfsprogs") + (description "This package provides statically-linked command of btrfs taken +from the btrfsprogs package. It is meant to be used in initrds.") + (license (package-license btrfs-progs)))) + (define-public freefall (package (name "freefall") |