summary refs log tree commit diff
path: root/pkgs/tools/misc/ix/default.nix
blob: 83d8a7704192796248f962e72966a7835abcc8fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchurl, makeWrapper, curl }:

stdenv.mkDerivation {
  pname = "ix";
  version = "20190815";

  src = fetchurl {
    url = "http://ix.io/client";
    sha256 =  "0xc2s4s1aq143zz8lgkq5k25dpf049dw253qxiav5k7d7qvzzy57";
  };

  nativeBuildInputs = [ makeWrapper ];

  phases = [ "installPhase" "fixupPhase" ];

  installPhase = ''
    install -Dm +x $src $out/bin/ix
  '';

  postFixup = ''
    wrapProgram $out/bin/ix --prefix PATH : "${lib.makeBinPath [ curl ]}"
  '';

  meta = with lib; {
    homepage = "http://ix.io";
    description = "Command line pastebin";
    maintainers = with maintainers; [ asymmetric ];
    platforms = platforms.all;
  };
}