nixpkgs/pkgs/tools/misc/ix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
646 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, curl }:
2019-08-15 14:58:56 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2019-08-15 14:58:56 +00:00
pname = "ix";
version = "20190815";
src = fetchurl {
url = "http://ix.io/client";
sha256 = "0xc2s4s1aq143zz8lgkq5k25dpf049dw253qxiav5k7d7qvzzy57";
};
nativeBuildInputs = [ makeWrapper ];
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 = ''
install -Dm +x $src $out/bin/ix
'';
postFixup = ''
2021-01-15 09:19:50 +00:00
wrapProgram $out/bin/ix --prefix PATH : "${lib.makeBinPath [ curl ]}"
2019-08-15 14:58:56 +00:00
'';
meta = with lib; {
2019-08-15 14:58:56 +00:00
homepage = "http://ix.io";
description = "Command line pastebin";
maintainers = with maintainers; [ asymmetric ];
platforms = platforms.all;
};
}