Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
835 B
Nix
45 lines
835 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
bash,
|
|
curl,
|
|
xsel,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "imgurbash2";
|
|
version = "3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ram-on";
|
|
repo = "imgurbash2";
|
|
rev = version;
|
|
sha256 = "sha256-7J3LquzcYX0wBR6kshz7VuPv/TftTzKFdWcgsML2DnI=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat <<EOF >$out/bin/imgurbash2
|
|
#!${bash}/bin/bash
|
|
PATH=${
|
|
lib.makeBinPath [
|
|
curl
|
|
xsel
|
|
]
|
|
}:\$PATH
|
|
EOF
|
|
cat imgurbash2 >> $out/bin/imgurbash2
|
|
chmod +x $out/bin/imgurbash2
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Shell script that uploads images to imgur";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = [ ];
|
|
homepage = "https://github.com/ram-on/imgurbash2";
|
|
mainProgram = "imgurbash2";
|
|
};
|
|
}
|