2022-07-21 01:55:12 +00:00
|
|
|
{ lib, resholve, fetchurl, bash, curl }:
|
2019-08-15 14:58:56 +00:00
|
|
|
|
2022-07-18 04:39:10 +00:00
|
|
|
resholve.mkDerivation {
|
2019-08-15 14:58:56 +00:00
|
|
|
pname = "ix";
|
|
|
|
version = "20190815";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ix.io/client";
|
2022-07-18 04:39:10 +00:00
|
|
|
hash = "sha256-p/j/Nz7tzLJV7HgUwVsiwN1WxCx4Por+HyRgFTTRgnU=";
|
2019-08-15 14:58:56 +00:00
|
|
|
};
|
|
|
|
|
2021-07-20 14:54:52 +00:00
|
|
|
dontUnpack = true;
|
2019-08-15 14:58:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2022-07-18 04:39:10 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm555 $src $out/bin/ix
|
2022-07-21 01:55:12 +00:00
|
|
|
substituteInPlace $out/bin/ix \
|
|
|
|
--replace '$echo ' ""
|
2019-08-15 14:58:56 +00:00
|
|
|
|
2022-07-18 04:39:10 +00:00
|
|
|
runHook postInstall
|
2019-08-15 14:58:56 +00:00
|
|
|
'';
|
|
|
|
|
2022-07-18 04:39:10 +00:00
|
|
|
solutions.default = {
|
|
|
|
scripts = [ "bin/ix" ];
|
2022-07-21 04:52:42 +00:00
|
|
|
interpreter = "${lib.getExe bash}";
|
2022-07-18 04:39:10 +00:00
|
|
|
inputs = [ curl ];
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-15 14:58:56 +00:00
|
|
|
homepage = "http://ix.io";
|
|
|
|
description = "Command line pastebin";
|
2022-07-25 01:42:54 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2019-08-15 14:58:56 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|