mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 19:14:14 +00:00
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.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ fetchgit, gawk, jq, lib, makeWrapper, slurp, stdenv, sway, bash }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wlprop";
|
|
version = "unstable-2022-08-18";
|
|
|
|
src = fetchgit {
|
|
url = "https://gist.github.com/f313386043395ff06570e02af2d9a8e0";
|
|
rev = "758c548bfb4be5b437c428c8062b3987f126f002";
|
|
sha256 = "sha256-ZJ9LYYrU2cNYikiVNTlEcI4QXcoqfl7iwk3Be+NhGG8=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ bash ];
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 wlprop.sh $out/bin/wlprop
|
|
wrapProgram "$out/bin/wlprop" \
|
|
--prefix PATH : "$out/bin:${lib.makeBinPath [ gawk jq slurp sway ]}"
|
|
|
|
runHook postInstall
|
|
'';
|
|
passthru.scriptName = "wlprop.sh";
|
|
|
|
meta = with lib; {
|
|
description = "Xprop clone for wlroots based compositors";
|
|
homepage = "https://gist.github.com/crispyricepc/f313386043395ff06570e02af2d9a8e0";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sebtm ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "wlprop";
|
|
};
|
|
}
|