2020-08-18 22:25:19 +00:00
|
|
|
{ fetchFromGitHub, stdenvNoCC, lib, makeWrapper, wmutils-core, procps-ng, slop, ffmpeg, xclip, shotgun, extraPackages ? [] }:
|
|
|
|
let
|
|
|
|
binPath = lib.makeBinPath ([ wmutils-core xclip shotgun procps-ng slop ffmpeg ] ++ extraPackages);
|
|
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-08-16 21:43:41 +00:00
|
|
|
pname = "scr";
|
2020-08-18 22:25:19 +00:00
|
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
2020-08-16 21:05:10 +00:00
|
|
|
owner = "6gk";
|
|
|
|
repo = "scr";
|
2020-08-16 21:43:41 +00:00
|
|
|
rev = "v${version}";
|
2020-08-18 22:25:19 +00:00
|
|
|
sha256 = "0fgmv99zlppi5wa2qylbvnblk9kc6i201byz8m79ld8cwiymabi2";
|
2020-08-16 21:05:10 +00:00
|
|
|
};
|
2020-08-16 21:43:41 +00:00
|
|
|
|
2020-08-18 22:25:19 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-08-16 21:43:41 +00:00
|
|
|
installPhase = "install -m755 -D ./scr $out/bin/scr";
|
|
|
|
postFixup = ''
|
2020-08-18 22:25:19 +00:00
|
|
|
wrapProgram "$out/bin/scr" --prefix PATH : ${binPath}
|
2020-08-16 21:43:41 +00:00
|
|
|
'';
|
|
|
|
meta = {
|
2020-08-16 22:56:30 +00:00
|
|
|
description = "Super CRappy SCReenshot SCRipt";
|
|
|
|
longDescription = ''
|
|
|
|
Super CRappy SCReenshot SCRipt
|
|
|
|
(and recording ^)
|
|
|
|
A SCRipt for Sound Cloud Rappers
|
|
|
|
'';
|
2020-08-16 21:43:41 +00:00
|
|
|
homepage = "https://github.com/6gk/scr";
|
2020-08-18 22:25:19 +00:00
|
|
|
maintainers = with lib.maintainers; [ elkowar ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.all;
|
2020-08-16 21:43:41 +00:00
|
|
|
};
|
|
|
|
}
|