mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 11:23:29 +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.
35 lines
1010 B
Nix
35 lines
1010 B
Nix
{ buildGoModule, fetchFromGitHub, fetchpatch, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "yeetgif";
|
|
version = "1.23.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sgreben";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-Z05GhtEPj3PLXpjF1wK8+pNUY3oDjbwZWQsYlTX14Rc=";
|
|
};
|
|
|
|
deleteVendor = true;
|
|
vendorHash = "sha256-LhkOMCuYO4GHezk21SlI2dP1UPmBp4bv2SdNbUQMKsI=";
|
|
|
|
patches = [
|
|
# Add Go Modules support
|
|
(fetchpatch {
|
|
url = "https://github.com/sgreben/yeetgif/commit/5d2067b9832898c2b1ac51bf6a5f107619038270.patch";
|
|
hash = "sha256-3eyqbpPyuQHjAN5mjQyZo0xY6L683T5Ytyx02II/iU4=";
|
|
})
|
|
];
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
meta = with lib; {
|
|
description = "gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang";
|
|
homepage = "https://github.com/sgreben/yeetgif";
|
|
license = with licenses; [ mit asl20 cc-by-nc-sa-40 ];
|
|
maintainers = with maintainers; [ ajs124 ];
|
|
mainProgram = "gif";
|
|
};
|
|
}
|