571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
28 lines
699 B
Nix
28 lines
699 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rofi-power-menu";
|
|
version = "3.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jluttine";
|
|
repo = "rofi-power-menu";
|
|
rev = version;
|
|
sha256 = "sha256-VPCfmCTr6ADNT7MW4jiqLI/lvTjlAu1QrCAugiD0toU=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp rofi-power-menu $out/bin/rofi-power-menu
|
|
cp dmenu-power-menu $out/bin/dmenu-power-menu
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Shows a Power/Lock menu with Rofi";
|
|
homepage = "https://github.com/jluttine/rofi-power-menu";
|
|
maintainers = with maintainers; [ ikervagyok ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "rofi-power-menu";
|
|
};
|
|
}
|