2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "woof";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2022-01-13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simon-budig";
|
|
|
|
repo = "woof";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "f51e9db264118d4cbcd839348c4a6223fda49813";
|
|
|
|
sha256 = "sha256-tk55q2Ew2mZkQtkxjWCuNgt9t+UbjH4llIJ42IruqGY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
propagatedBuildInputs = [ python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
installPhase = ''
|
2023-05-24 13:37:59 +00:00
|
|
|
runHook preInstall
|
|
|
|
install -Dm555 -t $out/bin woof
|
|
|
|
runHook postInstall
|
2021-01-05 17:05:55 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-11-03 02:18:15 +00:00
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "woof";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|