Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dc8af33d850c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a737f030cfb0
Choose a head ref
  • 5 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 26, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    3752bfd View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    00e7a67 View commit details

Commits on Apr 6, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    b4e1224 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    04a5e5a View commit details
  3. Merge pull request #71481 from eadwu/bcachefs/update-10

    bcachefs: update 10
    Mic92 authored Apr 6, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a737f03 View commit details
Showing with 42 additions and 14 deletions.
  1. +4 −4 pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
  2. +38 −10 pkgs/tools/filesystems/bcachefs-tools/default.nix
8 changes: 4 additions & 4 deletions pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ stdenv, buildPackages, fetchgit, fetchpatch, perl, buildLinux, ... } @ args:

buildLinux (args // {
version = "5.2.2019.10.12";
modDirVersion = "5.2.0";
version = "5.3.2020.04.04";
modDirVersion = "5.3.0";

src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs.git";
rev = "de906c3e2eddad291d46bd0e7c81c68eaadcd08a";
sha256 = "1ahabp8pd9slf4lchkbyfkagg9vhic0cw3kwvwryzaxxxjmf2hkk";
rev = "a27d7265e75f6d65c2b972ce4ac27abfc153c230";
sha256 = "0wnjl4xs7073d5ipcsplv5qpcxb7zpfqd5gqvh3mhqc5j3qn816x";
};

extraConfig = "BCACHEFS_FS m";
48 changes: 38 additions & 10 deletions pkgs/tools/filesystems/bcachefs-tools/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
{ stdenv, fetchgit, pkgconfig, attr, libuuid, libscrypt, libsodium, keyutils
, liburcu, zlib, libaio, zstd, lz4 }:
, liburcu, zlib, libaio, zstd, lz4, valgrind, python3Packages
, fuseSupport ? false, fuse3 ? null }:

assert fuseSupport -> fuse3 != null;

stdenv.mkDerivation {
pname = "bcachefs-tools";
version = "2019-10-12";
version = "2020-04-04";

src = fetchgit {
url = "https://evilpiepirate.org/git/bcachefs-tools.git";
rev = "6e696ea08703eecd0d1c7b8c520b6f62f06f4f26";
sha256 = "0m3valm68vc73b4kydlga17fglxa9bldrjaszlladzl5bd0zb967";
rev = "5d6e237b728cfb7c3bf2cb1a613e64bdecbd740d";
sha256 = "1syym9k3njb0bk2mg6832cbf6r42z6y8b6hjv7dg4gmv2h7v7l7g";
};

enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ attr libuuid libscrypt libsodium keyutils liburcu zlib libaio zstd lz4 ];
installFlags = [ "PREFIX=${placeholder "out"}" ];

preInstall = ''
postPatch = ''
substituteInPlace Makefile \
--replace "pytest-3" "pytest --verbose" \
--replace "INITRAMFS_DIR=/etc/initramfs-tools" \
"INITRAMFS_DIR=${placeholder "out"}/etc/initramfs-tools"
'';

enableParallelBuilding = true;

nativeBuildInputs = [
pkgconfig
];

buildInputs = [
libuuid libscrypt libsodium keyutils liburcu zlib libaio
zstd lz4 python3Packages.pytest
] ++ stdenv.lib.optional fuseSupport fuse3;

doCheck = true;

checkFlags = [
"BCACHEFS_TEST_USE_VALGRIND=no"
];

checkInputs = [
valgrind
];

preCheck = stdenv.lib.optionalString fuseSupport ''
rm tests/test_fuse.py
'';

installFlags = [
"PREFIX=${placeholder "out"}"
];

meta = with stdenv.lib; {
description = "Tool for managing bcachefs filesystems";
homepage = https://bcachefs.org/;