2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ix";
|
|
|
|
version = "20190815";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ix.io/client";
|
|
|
|
sha256 = "0xc2s4s1aq143zz8lgkq5k25dpf049dw253qxiav5k7d7qvzzy57";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm +x $src $out/bin/ix
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapProgram $out/bin/ix --prefix PATH : "${lib.makeBinPath [ curl ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://ix.io";
|
|
|
|
description = "Command line pastebin";
|
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|