This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  stdenv,
 | 
						|
  makeWrapper,
 | 
						|
  fetchFromGitHub,
 | 
						|
  writeShellScriptBin,
 | 
						|
  imagemagick,
 | 
						|
  i3lock-color,
 | 
						|
  xdpyinfo,
 | 
						|
  xrandr,
 | 
						|
  bc,
 | 
						|
  feh,
 | 
						|
  procps,
 | 
						|
  xrdb,
 | 
						|
  xset,
 | 
						|
  gnused,
 | 
						|
  gnugrep,
 | 
						|
  coreutils,
 | 
						|
}:
 | 
						|
let
 | 
						|
  i3lock = writeShellScriptBin "i3lock" ''
 | 
						|
    ${i3lock-color}/bin/i3lock-color "$@"
 | 
						|
  '';
 | 
						|
  binPath = lib.makeBinPath [
 | 
						|
    imagemagick
 | 
						|
    i3lock
 | 
						|
    xdpyinfo
 | 
						|
    xrandr
 | 
						|
    xset
 | 
						|
    bc
 | 
						|
    feh
 | 
						|
    procps
 | 
						|
    xrdb
 | 
						|
    gnused
 | 
						|
    gnugrep
 | 
						|
    coreutils
 | 
						|
  ];
 | 
						|
in
 | 
						|
stdenv.mkDerivation rec {
 | 
						|
  pname = "multilockscreen";
 | 
						|
  version = "1.2.0";
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "jeffmhubbard";
 | 
						|
    repo = "multilockscreen";
 | 
						|
    rev = "v${version}";
 | 
						|
    sha256 = "1bfpbazvhaz9x356nsghz0czysh9b75g79cd9s35v0x0rrzdr9qj";
 | 
						|
  };
 | 
						|
 | 
						|
  nativeBuildInputs = [ makeWrapper ];
 | 
						|
 | 
						|
  installPhase = ''
 | 
						|
    mkdir -p $out/bin
 | 
						|
    cp multilockscreen $out/bin/multilockscreen
 | 
						|
    wrapProgram "$out/bin/multilockscreen" --prefix PATH : "${binPath}"
 | 
						|
  '';
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    description = "Wrapper script for i3lock-color";
 | 
						|
    mainProgram = "multilockscreen";
 | 
						|
    longDescription = ''
 | 
						|
      multilockscreen is a wrapper script for i3lock-color.
 | 
						|
      It allows you to cache background images for i3lock-color with a variety of different effects and adds a stylish indicator.
 | 
						|
    '';
 | 
						|
    homepage = "https://github.com/jeffmhubbard/multilockscreen";
 | 
						|
    license = licenses.mit;
 | 
						|
    platforms = platforms.linux;
 | 
						|
    maintainers = with maintainers; [ kylesferrazza ];
 | 
						|
  };
 | 
						|
}
 |