lol

Merge pull request #203894 from urandom2/jobber

Fixes https://github.com/NixOS/nixpkgs/issues/126268

authored by

Sandro and committed by
GitHub
96b8fab0 765b4a9f

+42
+40
pkgs/tools/system/jobber/default.nix
··· 1 + { lib, buildGoModule, fetchFromGitHub, gotools }: 2 + 3 + buildGoModule rec { 4 + pname = "jobber"; 5 + version = "1.4.4"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "dshearer"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + hash = "sha256-mLYyrscvT/VK9ehwkPUq4RbwHb+6Wjvt7ZXk/fI0HT4="; 12 + }; 13 + 14 + vendorHash = null; 15 + 16 + nativeBuildInputs = [ gotools ]; 17 + 18 + postConfigure = "go generate ./..."; 19 + 20 + ldflags = [ 21 + "-s" 22 + "-w" 23 + "-X github.com/dshearer/jobber/common.jobberVersion=${version}" 24 + "-X github.com/dshearer/jobber/common.etcDirPath=${placeholder "out"}/etc" 25 + ]; 26 + 27 + postInstall = '' 28 + mkdir -p $out/etc $out/libexec 29 + $out/bin/jobbermaster defprefs --libexec $out/libexec > $out/etc/jobber.conf 30 + mv $out/bin/jobber{master,runner} $out/libexec/ 31 + ''; 32 + 33 + meta = with lib; { 34 + homepage = "https://dshearer.github.io/jobber"; 35 + changelog = "https://github.com/dshearer/jobber/releases/tag/v${version}"; 36 + description = "An alternative to cron, with sophisticated status-reporting and error-handling"; 37 + license = licenses.mit; 38 + maintainers = with maintainers; [ urandom ]; 39 + }; 40 + }
+2
pkgs/top-level/all-packages.nix
··· 1395 1395 1396 1396 httm = callPackage ../tools/filesystems/httm { }; 1397 1397 1398 + jobber = callPackage ../tools/system/jobber {}; 1399 + 1398 1400 kanata = callPackage ../tools/system/kanata { }; 1399 1401 1400 1402 kanata-with-cmd = kanata.override { withCmd = true; };