about summary refs log tree commit diff
path: root/users/grfn/pkgs/notmuch-extract-patch.nix
blob: 54dad260a041342f9a816f169229707d2846a1fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, ... }:

let
  inherit (pkgs) lib;
  src = pkgs.fetchurl {
    url = "https://raw.githubusercontent.com/aaptel/notmuch-extract-patch/f732a53e12a7c91a06755ebfab2007adc9b3063b/notmuch-extract-patch";
    sha256 = "0nawkl04sj7psw6ikzay7kydj3dhd0fkwghcsf5rzaw4bmp4kbax";
  };

in
pkgs.runCommandNoCC "notmuch-extract-patch"
{
  buildInputs = [ pkgs.python3 ];
} ''
  mkdir -p $out/bin
  install -m 755 ${src} $out/bin/notmuch-extract-patch
  patchShebangs $out/bin
''