Unverified Commit 2f9f2dbc authored by zimward's avatar zimward
Browse files

splitcode: 0.31.3 -> 0.31.4

parent 01f116e4
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -7,18 +7,15 @@
  zlib,
  nix-update-script,
}:
let
  version = "0.31.3";
in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
  pname = "splitcode";
  inherit version;
  version = "0.31.4";

  src = fetchFromGitHub {
    owner = "pachterlab";
    repo = "splitcode";
    tag = "v${version}";
    hash = "sha256-EEYjBo52jPCSnv5WSGsXhfZEjsBCHdGerVPOZfShXBU=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-jaZptrF5HSQSe2KQdBNPprhsVZ2FSudZFgWPn9zQq3A=";
  };

  nativeBuildInputs = [ cmake ];
@@ -28,6 +25,12 @@ stdenv.mkDerivation {
    zlib
  ];

  postPatch = ''
    # https://github.com/pachterlab/splitcode/pull/46
    substituteInPlace CMakeLists.txt \
      --replace-fail 2.8.12 3.10
  '';

  doCheck = true;
  checkPhase = ''
    mkdir func_tests
@@ -49,4 +52,4 @@ stdenv.mkDerivation {
      "aarch64-linux"
    ];
  };
}
})