571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
997 B
Nix
37 lines
997 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, ffmpeg, imagemagick, dzen2, xorg }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "xscast-unstable";
|
|
version = "2016-07-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KeyboardFire";
|
|
repo = "xscast";
|
|
rev = "9e6fd3c28d3f5ae630619f6dbccaf1f6ca594b21";
|
|
sha256 = "0br27bq9bpglfdpv63h827bipgvhlh10liyhmhcxls4227kagz72";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 xscast.sh $out/bin/xscast
|
|
install -Dm644 xscast.1 $out/share/man/man1/xscast.1
|
|
patchShebangs $out/bin
|
|
|
|
wrapProgram "$out/bin/xscast" \
|
|
--prefix PATH : ${lib.makeBinPath [ ffmpeg dzen2 xorg.xwininfo xorg.xinput xorg.xmodmap imagemagick ]}
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/KeyboardFire/xscast";
|
|
license = licenses.mit;
|
|
description = "Screencasts of windows with list of keystrokes overlayed";
|
|
maintainers = [ ];
|
|
mainProgram = "xscast";
|
|
};
|
|
}
|