From 7c59058a2a74165a5f6fc68c1993edd29a4df21d Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 8 Jun 2018 18:16:20 +0200 Subject: [PATCH] i3lock-pixeled: github -> gitlab Additionally `pkgs` has been removed which makes possible overrides *way* easier. --- .../screensavers/i3lock-pixeled/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/misc/screensavers/i3lock-pixeled/default.nix b/pkgs/misc/screensavers/i3lock-pixeled/default.nix index 5fff7b8f0ea3..de6114897318 100644 --- a/pkgs/misc/screensavers/i3lock-pixeled/default.nix +++ b/pkgs/misc/screensavers/i3lock-pixeled/default.nix @@ -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 ];