Skip to content
Snippets Groups Projects
Verified Commit 3af74c59 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

Working nix script!

parent 98eb74a5
No related branches found
No related tags found
No related merge requests found
supload-*
supload_*
.timetracker
result
{ lib, stdenv, fetchgit, bash, curl, jq, makeWrapper }:
stdenv.mkDerivation rec {
pname = "supload";
version = "1.2.6";
src = fetchgit {
url = "https://git.volkor.me/Volkor/SUpload.git";
rev = version;
hash = "sha256-423feyUMW6ltSOnIRfBDxAKKF+se84Ja1lRSZ/fUlbQ=";
};
dontBuild = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp supload.sh $out/bin/supload
wrapProgram $out/bin/supload \
--prefix PATH : ${lib.makeBinPath [ bash curl jq ]}
'';
meta = with lib; {
description = "Simple bash script to take screenshots and upload files to various file hosts";
homepage = "https://git.volkor.me/Volkor/SUpload";
license = licenses.mit;
maintainers = with maintainers; [ "Volkor" ];
mainProgram = "supload";
platforms = platforms.all;
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment