]> git.scottworley.com Git - auto-upgrade-with-pinch/blob - overlays/polite-merge.nix
37f7ba54aab8f3084c722e26f087291f6d926bfa
[auto-upgrade-with-pinch] / overlays / polite-merge.nix
1 self: super:
2 let
3 checkInputsAreNative = self.lib.hasInfix "nativeCheckInputs"
4 (builtins.readFile <nixpkgs/doc/stdenv/stdenv.chapter.md>);
5 checkInputsName =
6 if checkInputsAreNative then "nativeCheckInputs" else "checkInputs";
7 in {
8 polite-merge = if builtins.hasAttr "polite-merge" super then
9 super.polite-merge
10 else
11 self.callPackage ({ fetchgit, git, stdenv, }:
12 stdenv.mkDerivation rec {
13 pname = "polite-merge";
14 version = "2.4";
15 src = fetchgit {
16 url = "https://git.scottworley.com/pub/git/polite-merge";
17 rev = version;
18 sha256 = "1p6ivaay3bk4vvqqic7g23xrhkkq8z19zhsaxkav8kk90s2bmmza";
19 };
20 postUnpack = "patchShebangs .";
21 "${checkInputsName}" = [ git ];
22 doCheck = true;
23 preInstall = "export prefix";
24 }) { };
25 }
26