1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/tools/misc/ix/default.nix
2019-08-15 17:02:26 +02:00

31 lines
676 B
Nix

{ stdenv, fetchurl, makeWrapper, curl }:
stdenv.mkDerivation rec {
pname = "ix";
version = "20190815";
src = fetchurl {
url = "http://ix.io/client";
sha256 = "0xc2s4s1aq143zz8lgkq5k25dpf049dw253qxiav5k7d7qvzzy57";
};
buildInputs = [ makeWrapper ];
phases = [ "installPhase" "fixupPhase" ];
installPhase = ''
install -Dm +x $src $out/bin/ix
'';
postFixup = ''
wrapProgram $out/bin/ix --prefix PATH : "${stdenv.lib.makeBinPath [ curl ]}"
'';
meta = with stdenv.lib; {
homepage = "http://ix.io";
description = "Command line pastebin";
maintainers = with maintainers; [ asymmetric ];
platforms = platforms.all;
};
}