surf.nix (1413B)
1 { pkgs 2 , fetchurl 3 , mkSucklessPackage ? pkgs.callPackage ../common/suckless-pkg.nix { } 4 }: 5 6 mkSucklessPackage { 7 name = "surf"; 8 src = fetchurl { 9 url = https://dl.suckless.org/surf/surf-2.1.tar.gz; 10 hash = "sha256-cuWCkguiWmRiA+k8LSMx2H8DA3ooiU1sfpmvAO4EMlc="; 11 }; 12 13 configHeader = ../configs/surf.h; 14 15 nativeBuildInputs = with pkgs; [ 16 pkg-config 17 ]; 18 19 buildInputs = with pkgs; [ 20 glib 21 gcr 22 gtk3-x11 23 webkitgtk 24 glib-networking 25 ]; 26 27 patches = [ 28 (fetchurl { 29 url = https://surf.suckless.org/patches/homepage/surf-2.0-homepage.diff; 30 hash = "sha256-hYBQeaNc0dCr/lE3c0aQO08q8Z+dB2SFryYGiBGZDzY="; 31 }) 32 (fetchurl { 33 url = https://surf.suckless.org/patches/history/surf-2.1-history.diff; 34 hash = "sha256-t7uI2SEjcG90xSp9g6lSheE9O+B9kx7Ggu9zlrt5X2o="; 35 }) 36 (fetchurl { 37 url = https://surf.suckless.org/patches/clipboard-instead-of-primary/surf-clipboard-20200112-a6a8878.diff; 38 hash = "sha256-eDwZ3KwCcETkPufWM52YyLKtVdc+PRNQZC1xI6ZYUFs="; 39 }) 40 (fetchurl { 41 url = https://surf.suckless.org/patches/searchengines/surf-searchengines-20220804-609ea1c.diff; 42 hash = "sha256-F99gbM9sDDdvDj11J22kn2fu6sIKehD3Ecjm3syb3IU="; 43 }) 44 (fetchurl { 45 url = https://surf.suckless.org/patches/short-title/surf-short-title-20210206-7dcce9e.diff; 46 hash = "sha256-763QcUq4c3Kj+tqjqrFFksMOuJFrnGg9ESt5eJIcaO4="; 47 }) 48 ]; 49 }