Files
nixpkgs/pkgs/by-name/su/surf/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

92 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchgit,
pkg-config,
wrapGAppsHook3,
glib,
gcr,
glib-networking,
gsettings-desktop-schemas,
gtk2,
libsoup_2_4,
webkitgtk_4_0,
xorg,
dmenu,
findutils,
gnused,
coreutils,
gst_all_1,
patches ? null,
}:
stdenv.mkDerivation rec {
pname = "surf";
version = "2.1";
# tarball is missing file common.h
src = fetchgit {
url = "git://git.suckless.org/surf";
rev = version;
sha256 = "1v926hiayddylq79n8l7dy51bm0dsa9n18nx9bkhg666cx973x4z";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
];
buildInputs = [
glib
gcr
glib-networking
gsettings-desktop-schemas
gtk2
libsoup_2_4
webkitgtk_4_0
]
++ (with gst_all_1; [
# Audio & video support for webkitgtk WebView
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-bad
]);
inherit patches;
makeFlags = [ "PREFIX=$(out)" ];
# Add run-time dependencies to PATH. Append them to PATH so the user can
# override the dependencies with their own PATH.
preFixup =
let
depsPath = lib.makeBinPath [
xorg.xprop
dmenu
findutils
gnused
coreutils
];
in
''
gappsWrapperArgs+=(
--suffix PATH : ${depsPath}
)
'';
meta = with lib; {
description = "Simple web browser based on WebKitGTK";
mainProgram = "surf";
longDescription = ''
surf is a simple web browser based on WebKitGTK. It is able to display
websites and follow links. It supports the XEmbed protocol which makes it
possible to embed it in another application. Furthermore, one can point
surf to another URI by setting its XProperties.
'';
homepage = "https://surf.suckless.org";
license = licenses.mit;
platforms = webkitgtk_4_0.meta.platforms;
maintainers = with maintainers; [ joachifm ];
};
}