2022-08-12 12:06:08 +00:00
|
|
|
{ lib, resholve, fetchurl, bash, curl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
resholve.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ix";
|
|
|
|
version = "20190815";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ix.io/client";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-p/j/Nz7tzLJV7HgUwVsiwN1WxCx4Por+HyRgFTTRgnU=";
|
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 = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm555 $src $out/bin/ix
|
|
|
|
substituteInPlace $out/bin/ix \
|
|
|
|
--replace '$echo ' ""
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
solutions.default = {
|
|
|
|
scripts = [ "bin/ix" ];
|
|
|
|
interpreter = "${lib.getExe bash}";
|
|
|
|
inputs = [ curl ];
|
|
|
|
};
|
|
|
|
|
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";
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|