aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkamustard <pukkamustard@posteo.net>2020-12-29 20:15:26 +0100
committerpukkamustard <pukkamustard@posteo.net>2020-12-29 20:15:26 +0100
commit6cf83aabbec833f15d6d7619c1c5aa96bb9d3733 (patch)
tree580257d173f81eb285f85f48070558d296fc4882
parent2c65c117e74b1b4e2d4fd2133fddd40e8b99e39d (diff)
example/dedup-fs: supporting files
-rw-r--r--examples/dedup-fs/.gitignore3
-rw-r--r--examples/dedup-fs/emacs-26.3-channels.scm9
-rw-r--r--examples/dedup-fs/guix.scm53
3 files changed, 65 insertions, 0 deletions
diff --git a/examples/dedup-fs/.gitignore b/examples/dedup-fs/.gitignore
new file mode 100644
index 0000000..21c5b7e
--- /dev/null
+++ b/examples/dedup-fs/.gitignore
@@ -0,0 +1,3 @@
+*.img
+*.tar
+*.tar.zst
diff --git a/examples/dedup-fs/emacs-26.3-channels.scm b/examples/dedup-fs/emacs-26.3-channels.scm
new file mode 100644
index 0000000..8ae6a83
--- /dev/null
+++ b/examples/dedup-fs/emacs-26.3-channels.scm
@@ -0,0 +1,9 @@
+(list (channel
+ (name 'guix)
+ (url "https://git.savannah.gnu.org/git/guix.git")
+ (commit "c05d2cfcbedaae5424149b8060a61bacdf81a119")
+ (introduction
+ (make-channel-introduction
+ "9edb3f66fd807b096b48283debdcddccfea34bad"
+ (openpgp-fingerprint
+ "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))
diff --git a/examples/dedup-fs/guix.scm b/examples/dedup-fs/guix.scm
new file mode 100644
index 0000000..d965725
--- /dev/null
+++ b/examples/dedup-fs/guix.scm
@@ -0,0 +1,53 @@
+(use-modules
+ (guix packages)
+ (guix download)
+ (guix git-download)
+ (guix build-system gnu)
+ ((guix licenses) #:prefix license:)
+ (gnu packages autotools)
+ (gnu packages compression)
+ (gnu packages linux)
+ (gnu packages pkg-config))
+
+(define-public erofs-utils
+ (package
+ (name "erofs-utils")
+ (version "1.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "07hvijq2hsn3gg1kb8abrfk23n83j57yx8kyv4wqgwhhvd30myjc"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("lz4" ,lz4)
+ ("util-linux" ,util-linux "lib")))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)))
+ (home-page "https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/")
+ (synopsis "User-space tools for EROFS filesystem")
+ (description "EROFS (Enhanced Read-Only File System) is a compressed,
+read-only filesystem optimized for resource-scarce devices. This package
+provides user-space tools for creating EROFS filesystems.")
+ (license license:gpl2+)))
+
+(package
+ (name "eris-dedup-fs-example")
+ (version "0")
+ (source #f)
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("zstd" ,zstd)
+ ("squashfs-tools" ,squashfs-tools)
+ ("erofs-utils" ,erofs-utils)))
+ (home-page #f)
+ (synopsis #f)
+ (description #f)
+ (license license:gpl3+))