imgurbash: add package
This commit is contained in:
parent
97a289b111
commit
3a2275dd84
27
pkgs/tools/graphics/imgurbash/default.nix
Normal file
27
pkgs/tools/graphics/imgurbash/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, bash, curl, xsel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "imgurbash-4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://imgur.com/tools/imgurbash.sh";
|
||||
sha256 = "16m7dn5vqzx1q4pzssnwiwajfzrbhrz0niyhf5abxi1lwr3h0ca1";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
cat <<EOF >$out/bin/imgurbash
|
||||
#!${bash}/bin/bash
|
||||
PATH=${stdenv.lib.makeSearchPath "bin" [curl xsel]}:\$PATH
|
||||
EOF
|
||||
cat $src >>$out/bin/imgurbash
|
||||
chmod +x $out/bin/imgurbash
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A simple bash script to upload an image to imgur from the commandline";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
@ -1892,6 +1892,8 @@ let
|
||||
inherit (perlPackages) MailIMAPClient;
|
||||
};
|
||||
|
||||
imgurbash = callPackage ../tools/graphics/imgurbash { };
|
||||
|
||||
inadyn = callPackage ../tools/networking/inadyn { };
|
||||
|
||||
inetutils = callPackage ../tools/networking/inetutils { };
|
||||
|
Loading…
Reference in New Issue
Block a user