mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +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.
28 lines
651 B
Nix
28 lines
651 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromSourcehut
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "mnc";
|
|
version = "0.5";
|
|
|
|
vendorHash = "sha256-H0KmGTWyjZOZLIEWophCwRYPeKLxBC050RI7cMXNbPs=";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~anjan";
|
|
repo = "mnc";
|
|
rev = version;
|
|
sha256 = "sha256-eCj7wmHxPF2j2x4yHKN7TE122TCv1++azgdoQArabBM=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Opens the user's crontab and echos the time when the next cronjob will be ran";
|
|
homepage = "https://git.sr.ht/~anjan/mnc";
|
|
license = licenses.unlicense;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wentam ];
|
|
mainProgram = "mnc";
|
|
};
|
|
}
|