mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
37 lines
734 B
Nix
37 lines
734 B
Nix
{ lib, resholve, fetchurl, bash, curl }:
|
|
|
|
resholve.mkDerivation {
|
|
pname = "ix";
|
|
version = "20190815";
|
|
|
|
src = fetchurl {
|
|
url = "http://ix.io/client";
|
|
hash = "sha256-p/j/Nz7tzLJV7HgUwVsiwN1WxCx4Por+HyRgFTTRgnU=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm555 $src $out/bin/ix
|
|
substituteInPlace $out/bin/ix \
|
|
--replace '$echo ' ""
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
solutions.default = {
|
|
scripts = [ "bin/ix" ];
|
|
interpreter = "${lib.getExe bash}";
|
|
inputs = [ curl ];
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "http://ix.io";
|
|
description = "Command line pastebin";
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|