4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.4 KiB
Nix
38 lines
1.4 KiB
Nix
{ lib, stdenv, linkFarm, lightdm-mini-greeter, fetchFromGitHub, autoreconfHook, pkgconfig, lightdm, gtk3, glib, gdk-pixbuf, wrapGAppsHook, librsvg }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lightdm-mini-greeter";
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prikhi";
|
|
repo = "lightdm-mini-greeter";
|
|
rev = version;
|
|
sha256 = "10hga7pmfyjdvj4xwm3djwrhk50brcpycj3p3c57pa0vnx4ill3s";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig wrapGAppsHook ];
|
|
buildInputs = [ lightdm gtk3 glib gdk-pixbuf librsvg ];
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ];
|
|
makeFlags = [ "configdir=${placeholder "out"}/etc" ];
|
|
|
|
postInstall = ''
|
|
substituteInPlace "$out/share/xgreeters/lightdm-mini-greeter.desktop" \
|
|
--replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
|
|
'';
|
|
|
|
passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
|
|
path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
|
|
name = "lightdm-mini-greeter.desktop";
|
|
}];
|
|
|
|
meta = with lib; {
|
|
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
|
|
homepage = "https://github.com/prikhi/lightdm-mini-greeter";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ mnacamura prikhi ];
|
|
platforms = platforms.linux;
|
|
changelog = "https://github.com/prikhi/lightdm-mini-greeter/blob/master/CHANGELOG.md";
|
|
};
|
|
}
|