mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 12:08:02 +03:00
dune-release: 1.3.3 → 1.4.0
This commit is contained in:
parent
7dd96f84c1
commit
b37f77420e
@ -1,6 +1,6 @@
|
|||||||
{ lib, buildDunePackage, fetchurl, makeWrapper
|
{ lib, buildDunePackage, fetchurl, makeWrapper
|
||||||
, curly, fmt, bos, cmdliner, re, rresult, logs
|
, curly, fmt, bos, cmdliner, re, rresult, logs
|
||||||
, odoc, opam-format, opam-core, opam-state
|
, odoc, opam-format, opam-core, opam-state, yojson
|
||||||
, opam, git, findlib, mercurial, bzip2, gnutar, coreutils
|
, opam, git, findlib, mercurial, bzip2, gnutar, coreutils
|
||||||
, alcotest, mdx
|
, alcotest, mdx
|
||||||
}:
|
}:
|
||||||
@ -10,27 +10,33 @@
|
|||||||
let runtimeInputs = [ opam findlib git mercurial bzip2 gnutar coreutils ];
|
let runtimeInputs = [ opam findlib git mercurial bzip2 gnutar coreutils ];
|
||||||
in buildDunePackage rec {
|
in buildDunePackage rec {
|
||||||
pname = "dune-release";
|
pname = "dune-release";
|
||||||
version = "1.3.3";
|
version = "1.4.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.06";
|
minimumOCamlVersion = "4.06";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ocamllabs/${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
url = "https://github.com/ocamllabs/${pname}/releases/download/${version}/${pname}-${version}.tbz";
|
||||||
sha256 = "04qmgvjh1233ri878wi5kifdd1070w5pbfkd8yk3nnqnslz35zlb";
|
sha256 = "1frinv1rsrm30q6jclicsswpshkdwwdgxx7sp6q9w4c2p211n1ln";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ curly fmt cmdliner re opam-format opam-state opam-core
|
buildInputs = [ curly fmt cmdliner re opam-format opam-state opam-core
|
||||||
rresult logs odoc bos ];
|
rresult logs odoc bos yojson ];
|
||||||
checkInputs = [ alcotest mdx ];
|
checkInputs = [ alcotest mdx ] ++ runtimeInputs;
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
# remove check for curl in PATH, since curly is patched
|
|
||||||
# to have a fixed path to the binary in nix store
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
# remove check for curl in PATH, since curly is patched
|
||||||
|
# to have a fixed path to the binary in nix store
|
||||||
sed -i '/must_exist (Cmd\.v "curl"/d' lib/github.ml
|
sed -i '/must_exist (Cmd\.v "curl"/d' lib/github.ml
|
||||||
|
|
||||||
|
# set bogus user info in git so git commit doesn't fail
|
||||||
|
sed -i '/git init/ a \ $ git config user.name test; git config user.email "pseudo@pseudo.invalid"' \
|
||||||
|
tests/bin/{delegate_info,errors,tag,no_doc,x-commit-hash}/run.t
|
||||||
|
# ignore weird yes error message
|
||||||
|
sed -i 's/yes |/yes 2>\/dev\/null |/' tests/bin/no_doc/run.t
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tool specific env vars have been deprecated, use PATH
|
# tool specific env vars have been deprecated, use PATH
|
||||||
|
Loading…
Reference in New Issue
Block a user