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.
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
curl,
|
|
feh,
|
|
file,
|
|
jq,
|
|
util-linux,
|
|
wget,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "stylish";
|
|
version = "unstable-2022-12-05";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thevinter";
|
|
repo = "styli.sh";
|
|
rev = "d595412a949c6cdc7e151ae0cf929aa1958aa7f1";
|
|
hash = "sha256-lFnzrYnTFWe8bvK//aC1+TapWIFNsNP60Msn7D0tk/0=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp "${src}/styli.sh" $out/bin
|
|
chmod +x $out/bin/styli.sh
|
|
runHook postInstall
|
|
'';
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/styli.sh --prefix PATH : ${lib.makeBinPath [
|
|
curl
|
|
feh
|
|
file
|
|
jq
|
|
util-linux
|
|
wget
|
|
]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/thevinter/styli.sh";
|
|
description = "Shell script to manage wallpapers";
|
|
mainProgram = "styli.sh";
|
|
longDescription = ''
|
|
Styli.sh is a Bash script that aims to automate the tedious process
|
|
of finding new wallpapers, downloading and switching them via the
|
|
configs.
|
|
Styli.sh can search for specific wallpapers from unsplash or download
|
|
a random image from the specified subreddits. If you have pywal it also
|
|
can set automatically your terminal colors.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tchab ];
|
|
};
|
|
}
|