dots-of-war/files/nix-stuff/nixpkgs/packages/scr.nix

29 lines
844 B
Nix
Raw Normal View History

2020-08-16 21:05:10 +00:00
{ pkgs ? import <nixpkgs> { } }:
2020-08-16 21:43:41 +00:00
pkgs.stdenv.mkDerivation rec {
pname = "scr";
2020-08-16 22:56:30 +00:00
version = "2.0";
2020-08-16 21:43:41 +00:00
src = pkgs.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-16 22:56:30 +00:00
sha256 = "18srzjkbhh3n10ayq5nnbnx37vjfzfw0adhkwbg1s157y8hfnlcy";
2020-08-16 21:05:10 +00:00
};
2020-08-16 21:43:41 +00:00
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = "install -m755 -D ./scr $out/bin/scr";
postFixup = ''
wrapProgram "$out/bin/scr" --prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [ slop ffmpeg dmenu xclip shotgun ])}
'';
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";
license = pkgs.lib.licenses.mit;
platforms = pkgs.lib.platforms.all;
};
}