Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sasquatch: 4.3 -> 4.4 #119996

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 27 additions & 18 deletions pkgs/tools/filesystems/sasquatch/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
{ fetchFromGitHub
{ lib
, stdenv
, fetchFromGitHub
, fetchurl
, lz4 ? null
, lz4Support ? false
, lzo
, lib, stdenv
, xz
, lzo
, zlib
, zstd
, lz4
, lz4Support ? false
}:

assert lz4Support -> (lz4 != null);

let
patch = fetchFromGitHub {
owner = "devttys0";
repo = "sasquatch";
rev = "3e0cc40fc6dbe32bd3a5e6c553b3320d5d91ceed";
sha256 = "19lhndjv7v9w6nmszry63zh5rqii9v7wvsbpc2n6q606hyz955g2";
} + "/patches/patch0.txt";
patch = fetchFromGitHub
{
cole-h marked this conversation as resolved.
Show resolved Hide resolved
# NOTE: This uses my personal fork for now, until
# https://github.com/devttys0/sasquatch/pull/40 is merged.
Comment on lines +16 to +17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity sake I also replicated it here: https://github.com/DeterminateSystems/sasquatch

# I, cole-h, will keep this fork available until that happens.
owner = "cole-h";
repo = "sasquatch";
rev = "6edc54705454c6410469a9cb5bc58e412779731a";
sha256 = "x+PuPYGD4Pd0fcJtlLWByGy/nggsmZkxwSXxJfPvUgo=";
} + "/patches/patch0.txt";
cole-h marked this conversation as resolved.
Show resolved Hide resolved
in
stdenv.mkDerivation rec {
pname = "sasquatch";
version = "4.3";
version = "4.4";

src = fetchurl {
url = "mirror://sourceforge/squashfs/squashfs4.3.tar.gz";
sha256 = "1xpklm0y43nd9i6jw43y2xh5zvlmj9ar2rvknh0bh7kv8c95aq0d";
url = "mirror://sourceforge/squashfs/squashfs${version}.tar.gz";
sha256 = "qYGz8/IFS1ouZYhRo8BqJGCtBKmopkXgr+Bjpj/bsH4=";
};

buildInputs = [ xz lzo xz zlib ]
++ lib.optional lz4Support lz4;
buildInputs = [
xz
lzo
zlib
zstd
]
++ lib.optionals lz4Support [ lz4 ];

patches = [ patch ];
patchFlags = [ "-p0" ];
Expand Down