~andir/nixpkgs-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
5 4

[PATCH] b4: init at 0.6.2

William Casarin <jb55@jb55.com>
Details
Message ID
<20210206202618.32583-1-jb55@jb55.com>
DKIM signature
missing
Download raw message
Patch: +38 -0
Signed-off-by: William Casarin <jb55@jb55.com>
---

Since we were talking about it, here it is!

 pkgs/development/tools/b4/default.nix | 36 +++++++++++++++++++++++++++
 pkgs/top-level/all-packages.nix       |  2 ++
 2 files changed, 38 insertions(+)
 create mode 100644 pkgs/development/tools/b4/default.nix

diff --git a/pkgs/development/tools/b4/default.nix b/pkgs/development/tools/b4/default.nix
new file mode 100644
index 00000000000..5db8184c97f
--- /dev/null
+++ b/pkgs/development/tools/b4/default.nix
@@ -0,0 +1,36 @@
{ lib, python3Packages }:

python3Packages.buildPythonApplication rec {
  pname = "b4";
  version = "0.6.2";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "1j904dy9cwxl85k2ngc498q5cdnqwsmw3jibjr1m55w8aqdck68z";
  };

  preConfigure = ''
    substituteInPlace setup.py \
      --replace 'requests~=2.24' 'requests~=2.25'
  '';

  # tests make dns requests and fails
  doCheck = false;

  propagatedBuildInputs = with python3Packages; [
    requests
    dnspython
    dkimpy

    # These may be required in the future for other patch attestation features
    #pycryptodomex~=3.9.9
    #PyNaCl
  ];

  meta = with lib; {
    homepage = "https://git.kernel.org/pub/scm/utils/b4/b4.git/about";
    license = licenses.gpl2;
    description = "A helper utility to work with patches made available via a public-inbox archive";
    maintainers = with maintainers; [ jb55 ];
  };
}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 95d90a433ac..eb79b99c4e3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11689,6 +11689,8 @@ in

  avrdude = callPackage ../development/tools/misc/avrdude { };

  b4 = callPackage ../development/tools/b4 { };

  babeltrace = callPackage ../development/tools/misc/babeltrace { };

  bam = callPackage ../development/tools/build-managers/bam {};
-- 
2.30.0
Details
Message ID
<878s807uge.fsf@yoctocell.xyz>
In-Reply-To
<20210206202618.32583-1-jb55@jb55.com> (view parent)
DKIM signature
missing
Download raw message
Tested and works.

Reviewed-by: Xinglu Chen <public@yoctocell.xyz>
Details
Message ID
<20210206221233.h7hwt7fj6znh46sw@hoshi>
In-Reply-To
<20210206202618.32583-1-jb55@jb55.com> (view parent)
DKIM signature
missing
Download raw message
Reviewed-by: Matthias Beyer <mail@beyermatthias.de>
William Casarin <jb55@jb55.com>
Details
Message ID
<87zh0gsnbk.fsf@jb55.com>
In-Reply-To
<20210206202618.32583-1-jb55@jb55.com> (view parent)
DKIM signature
missing
Download raw message
PR'd at https://github.com/NixOS/nixpkgs/pull/112244

Still need a way of automating this without having to use the web ui :(
Details
Message ID
<20210207011911.6xyz5lyzpg6uv7f2@wrt>
In-Reply-To
<87zh0gsnbk.fsf@jb55.com> (view parent)
DKIM signature
missing
Download raw message
On 17:01 06.02.21, William Casarin wrote:
> 
> PR'd at https://github.com/NixOS/nixpkgs/pull/112244
> 
> Still need a way of automating this without having to use the web ui :(

That is where the github CLI tooling comes in to play. That is basically
what I am using with my neomutt integration I've talked about in the
other thread.
William Casarin <jb55@jb55.com>
Details
Message ID
<87r1lssmgc.fsf@jb55.com>
In-Reply-To
<20210207011911.6xyz5lyzpg6uv7f2@wrt> (view parent)
DKIM signature
missing
Download raw message
andi@srht.l.notmuch.email writes:

> On 17:01 06.02.21, William Casarin wrote:
>> 
>> PR'd at https://github.com/NixOS/nixpkgs/pull/112244
>> 
>> Still need a way of automating this without having to use the web ui :(
>
> That is where the github CLI tooling comes in to play. That is basically
> what I am using with my neomutt integration I've talked about in the
> other thread.

yeah I tried it and got impatient with it so ended up just doing it
manually. will be great once I get around to figuring it out.
Reply to thread Export thread (mbox)