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.
30 lines
769 B
Nix
30 lines
769 B
Nix
{ lib, fetchFromGitHub, stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "kwakd";
|
|
version = "0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fetchinson";
|
|
repo = "kwakd";
|
|
rev = "acdf0e1491204ae30622a60fde0bcae4769f78be";
|
|
sha256 = "1inf9ngrbxmkkdhqf1xday12nf0hxjxlx1810phkmivyyp6fl3nj";
|
|
};
|
|
|
|
postInstall = ''
|
|
serviceDir=$out/share/dbus-1/system-services
|
|
mkdir -p $serviceDir
|
|
cp kwakd.service $serviceDir/
|
|
substituteInPlace $serviceDir/kwakd.service \
|
|
--replace "kwakd -p 80" "$out/bin/kwakd -p 80"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Super small webserver that serves blank pages";
|
|
mainProgram = "kwakd";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|