at 24.11-pre 37 lines 758 B view raw
1{ lib, resholve, fetchurl, bash, curl }: 2 3resholve.mkDerivation { 4 pname = "ix"; 5 version = "20190815"; 6 7 src = fetchurl { 8 url = "http://ix.io/client"; 9 hash = "sha256-p/j/Nz7tzLJV7HgUwVsiwN1WxCx4Por+HyRgFTTRgnU="; 10 }; 11 12 dontUnpack = true; 13 14 installPhase = '' 15 runHook preInstall 16 17 install -Dm555 $src $out/bin/ix 18 substituteInPlace $out/bin/ix \ 19 --replace '$echo ' "" 20 21 runHook postInstall 22 ''; 23 24 solutions.default = { 25 scripts = [ "bin/ix" ]; 26 interpreter = "${lib.getExe bash}"; 27 inputs = [ curl ]; 28 }; 29 30 meta = with lib; { 31 homepage = "http://ix.io"; 32 description = "Command line pastebin"; 33 maintainers = with maintainers; [ peterhoeg ]; 34 platforms = platforms.all; 35 mainProgram = "ix"; 36 }; 37}