mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +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.
32 lines
868 B
Nix
32 lines
868 B
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "podgrab";
|
|
version = "unstable-2021-04-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "akhilrex";
|
|
repo = pname;
|
|
rev = "3179a875b8b638fb86d0e829d12a9761c1cd7f90";
|
|
sha256 = "sha256-vhxIm20ZUi+RusrAsSY54tv/D570/oMO5qLz9dNqgqo=";
|
|
};
|
|
|
|
vendorHash = "sha256-xY9xNuJhkWPgtqA/FBVIp7GuWOv+3nrz6l3vaZVLlIE=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/
|
|
cp -r $src/client $out/share/
|
|
cp -r $src/webassets $out/share/
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) podgrab; };
|
|
|
|
meta = with lib; {
|
|
description = "Self-hosted podcast manager to download episodes as soon as they become live";
|
|
mainProgram = "podgrab";
|
|
homepage = "https://github.com/akhilrex/podgrab";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
};
|
|
}
|