mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
i3lock-pixeled: github -> gitlab
Additionally `pkgs` has been removed which makes possible overrides *way* easier.
This commit is contained in:
parent
24ea891715
commit
7c59058a2a
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user