mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
e0464e4788
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ i3lock-color, lib, stdenv, fetchFromGitHub, fetchpatch, libGL }:
|
|
|
|
i3lock-color.overrideAttrs (oldAttrs : rec {
|
|
pname = "i3lock-blur";
|
|
version = "2.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karulont";
|
|
repo = "i3lock-blur";
|
|
rev = version;
|
|
sha256 = "sha256-rBQHYVD9rurzTEXrgEnOziOP22D2EePC1+EV9Wi2pa0=";
|
|
};
|
|
|
|
patches = [
|
|
# Pull patch pending upstream inclusion for -fno-common toolchain
|
|
# support: https://github.com/karulont/i3lock-blur/pull/22
|
|
(fetchpatch {
|
|
name = "fno-common.patch";
|
|
url = "https://github.com/karulont/i3lock-blur/commit/ec8fe0e7f7d78bf445602ed517efd5c324bb32f7.patch";
|
|
sha256 = "sha256-0hXUr+ZEB1tpI3xw80/hGzKyeGuna4CQmEvK6t0VBqU=";
|
|
})
|
|
];
|
|
|
|
buildInputs = oldAttrs.buildInputs ++ [ libGL ];
|
|
|
|
meta = with lib; {
|
|
description = "Improved screenlocker based upon XCB and PAM with background blurring filter";
|
|
homepage = "https://github.com/karulont/i3lock-blur/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dan4ik605743 ];
|
|
platforms = platforms.all;
|
|
broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/i3lock-blur.x86_64-darwin
|
|
};
|
|
})
|