nixpkgs/pkgs/by-name/le/lemonade/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
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.
2024-11-09 20:04:51 +08:00

37 lines
926 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
}:
buildGoModule rec {
pname = "lemonade";
version = "unstable-2021-06-18";
src = fetchFromGitHub {
owner = "lemonade-command";
repo = pname;
rev = "97ad2f7d63cbe6c696af36a754d399b4be4553bc";
sha256 = "sha256-77ymkpO/0DE4+m8fnpXGdnLLFxWMnKu2zsqCpQ3wEPM=";
};
patches = [
(fetchpatch {
url = "https://github.com/lemonade-command/lemonade/commit/2b292b0c9d8dc57f73c30a58b3f0f790a953b212.patch";
sha256 = "sha256-jUcOfsKu1IYa7arZuAvhuD0vw7JTmhzA/VLxOtAnbmI=";
})
];
vendorHash = "sha256-wjQfTKVNmehu4aU5425gS0YWKj53dosVSTLgdu9KjKc=";
subPackages = [ "." ];
meta = with lib; {
description = "Remote utility tool that to copy, paste and open browsers over TCP";
homepage = "https://github.com/lemonade-command/lemonade/";
license = licenses.mit;
maintainers = [ ];
mainProgram = "lemonade";
};
}