Merge pull request #41713 from Ma27/i3lock-pixeled/move-to-gitlab

i3lock-pixeled: github -> gitlab
This commit is contained in:
Jörg Thalheim 2018-06-08 17:40:56 +01:00 committed by GitHub
commit 2e7064c8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,17 @@
{ stdenv, pkgs, fetchurl }:
{ stdenv, i3lock, imagemagick, scrot, playerctl, fetchFromGitLab }:
stdenv.mkDerivation rec {
name = "i3lock-pixeled-${version}";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/Ma27/i3lock-pixeled/archive/${version}.tar.gz";
sha256 = "0vlynm833fk1mmdnkcgh4hwqmfypn22zskhysm110k39zvikif0h";
src = fetchFromGitLab {
owner = "Ma27";
repo = "i3lock-pixeled";
rev = version;
sha256 = "0pysx9sv4i3nnjvpqkrxkxaqja2a2dw5f2r1bzjcgg3c3c5qv74b";
};
propagatedBuildInputs = with pkgs; [
propagatedBuildInputs = [
i3lock
imagemagick
scrot
@ -22,15 +24,15 @@ stdenv.mkDerivation rec {
patchPhase = ''
substituteInPlace i3lock-pixeled \
--replace i3lock "${pkgs.i3lock}/bin/i3lock" \
--replace convert "${pkgs.imagemagick}/bin/convert" \
--replace scrot "${pkgs.scrot}/bin/scrot" \
--replace playerctl "${pkgs.playerctl}/bin/playerctl"
--replace i3lock "${i3lock}/bin/i3lock" \
--replace convert "${imagemagick}/bin/convert" \
--replace scrot "${scrot}/bin/scrot" \
--replace playerctl "${playerctl}/bin/playerctl"
'';
meta = with stdenv.lib; {
description = "Simple i3lock helper which pixels a screenshot by scaling it down and up to get a pixeled version of the screen when the lock is active.";
homepage = https://github.com/Ma27/i3lock-pixeled;
homepage = https://gitlab.com/Ma27/i3lock-pixeled;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ ma27 ];