mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +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.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, git
|
|
, bc
|
|
, bspwm
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bsp-layout";
|
|
version = "unstable-2022-06-19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phenax";
|
|
repo = pname;
|
|
rev = "9d60fc271454ea1bfca598575207a06d8d172d3e";
|
|
sha256 = "sha256-7bBVWJdgAnXLWzjQGZxVqhku2rsxX2kMxU4xkI9/DHE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper git bc ];
|
|
buildInputs = [ bspwm ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postInstall = ''
|
|
substituteInPlace $out/lib/bsp-layout/layout.sh --replace 'bc ' '${bc}/bin/bc '
|
|
for layout in tall rtall wide rwide
|
|
do
|
|
substituteInPlace "$out/lib/bsp-layout/layouts/$layout.sh" --replace 'bc ' '${bc}/bin/bc '
|
|
done
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Manage layouts in bspwm";
|
|
longDescription = ''
|
|
bsp-layout is a dynamic layout manager for bspwm, written in bash.
|
|
It provides layout options to fit most workflows.
|
|
'';
|
|
homepage = "https://github.com/phenax/bsp-layout";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ totoroot ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "bsp-layout";
|
|
};
|
|
}
|