Initial commit
This commit is contained in:
commit
b0a95003b7
57 changed files with 1561 additions and 0 deletions
40
pkgs/i3-scrot/default.nix
Normal file
40
pkgs/i3-scrot/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, bash
|
||||
, scrot
|
||||
, xdg-user-dirs
|
||||
, libnotify
|
||||
, xclip
|
||||
, makeWrapper
|
||||
}: let
|
||||
pname = "i3-scrot";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = pname;
|
||||
version = "1-unstable-a6f3fa1c";
|
||||
src = fetchFromGitLab {
|
||||
owner = "packages/extra";
|
||||
repo = pname;
|
||||
domain = "gitlab.manjaro.org";
|
||||
rev = "a6f3fa1cb127b0ae8c08cfd1fccd55c9ac07abd4";
|
||||
sha256 = "sha256-1tbZnMLrMYV3IJa9LLve3kdZ+dxXiSyN0orgvIm1sR0=";
|
||||
};
|
||||
buildInputs = [ bash scrot libnotify xclip ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp i3-scrot $out/bin/i3-scrot
|
||||
chmod +x $out/bin/i3-scrot
|
||||
wrapProgram $out/bin/i3-scrot \
|
||||
--prefix PATH : ${lib.makeBinPath [ bash scrot xdg-user-dirs libnotify xclip ]}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue