Unverified Commit c784cdce authored by Nick Cao's avatar Nick Cao
Browse files
parent 8ffe4bbf
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
, cryptsetup
, util-linux
, lvm2
, python3
, systemd
, xfsprogs
, thin-provisioning-tools
@@ -27,18 +28,18 @@

stdenv.mkDerivation rec {
  pname = "stratisd";
  version = "3.6.8";
  version = "3.7.1";

  src = fetchFromGitHub {
    owner = "stratis-storage";
    repo = pname;
    rev = "refs/tags/stratisd-v${version}";
    hash = "sha256-cYd2oy9reY8eWSdO98cVcz6/Z+MS26NY4U3UNVfMdbg=";
    hash = "sha256-JevVIyNNkRuG1aH9yuBKwVlOgS67jJSoJDZQvpLsy/4=";
  };

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    hash = "sha256-1KzOKo5Q1uBqO3aCBYUJJxla4873AzrwoFPaNpKKFJU=";
    hash = "sha256-n8gF8WuHwwPxZAggkJckBxfvb0r+jJDuTcj7KXjg4/Y=";
  };

  postPatch = ''
@@ -53,6 +54,8 @@ stdenv.mkDerivation rec {
      --replace-fail udevadm               "${systemd}/bin/udevadm"
  '';

  strictDeps = true;

  nativeBuildInputs = [
    rustPlatform.cargoSetupHook
    rustPlatform.bindgenHook
@@ -71,6 +74,7 @@ stdenv.mkDerivation rec {
    util-linux
    systemd
    lvm2
    (python3.withPackages (ps: [ ps.dbus-python ]))
  ];

  outputs = [ "out" "initrd" ];