forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
705 B
Nix
30 lines
705 B
Nix
{ lib, stdenv
|
|
, unstableGitUpdater
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "meme";
|
|
version = "unstable-2020-05-28";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nomad-software";
|
|
repo = "meme";
|
|
rev = "33a8b7d0de6996294a0464a605dacc17b26a6b02";
|
|
sha256 = "05h8d6pjszhr49xqg02nw94hm95kb7w1i7nw8jxi582fxxm2qbnm";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
description = "A command line utility for creating image macro style memes";
|
|
homepage = "https://github.com/nomad-software/meme";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.fgaz ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|