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.
31 lines
814 B
Nix
31 lines
814 B
Nix
{ lib, stdenv, fetchFromGitHub, python3 }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "woof";
|
|
version = "2022-01-13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simon-budig";
|
|
repo = "woof";
|
|
rev = "f51e9db264118d4cbcd839348c4a6223fda49813";
|
|
sha256 = "sha256-tk55q2Ew2mZkQtkxjWCuNgt9t+UbjH4llIJ42IruqGY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ python3 ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm555 -t $out/bin woof
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.home.unix-ag.org/simon/woof.html";
|
|
description = "Web Offer One File - Command-line utility to easily exchange files over a local network";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
mainProgram = "woof";
|
|
};
|
|
}
|