Skip to content

Instantly share code, notes, and snippets.

@sorki
Created November 16, 2017 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorki/f4046f6707566f51100fbdd6c92ce5a4 to your computer and use it in GitHub Desktop.
Save sorki/f4046f6707566f51100fbdd6c92ce5a4 to your computer and use it in GitHub Desktop.
git clone https://github.com/zfsonlinux/zfs
cd zfs
git remote add aither https://github.com/aither64/zfs/
git remote add mic https://github.com/Mic92/zfs/
git checkout nixos-zfs-2017-09-12
git show
git checkout uid_offset
git cherry-pick 3a504aa46962295f14f374ca839689bfb57ce8b8
git push srk ..
nix-prefetch-git https://github.com/sorki/zfs c1162b34f9c2fd108a7a10e0da83d2a612d0c5e6
nixpkgs.config = {
packageOverrides = self: {
utillinux = self.utillinux.override { systemd = null; };
linux_4_14 = self.linux_4_14.override {
extraConfig = ''
EXPERT y
CHECKPOINT_RESTORE y
'';
};
linux_testing = self.linux_testing.override {
extraConfig = ''
EXPERT y
CHECKPOINT_RESTORE y
'';
};
zfs = self.zfs.overrideAttrs (oldAttrs: rec {
src = pkgs.fetchFromGitHub {
owner = "sorki";
repo = "zfs";
rev = "c1162b34f9c2fd108a7a10e0da83d2a612d0c5e6";
sha256 = "0hh9armzjfa9dg7d481nrd0ahgq6xyjlm4m5fh02ldzws276gryz";
};
patches = [];
buildInputs = oldAttrs.buildInputs ++ [ pkgs.openssl ];
});
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment