Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 780 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libX11, 6 fontconfig, 7 libXft, 8 libXrender, 9}: 10 11stdenv.mkDerivation { 12 pname = "stw"; 13 version = "unstable-2022-02-04"; 14 15 src = fetchFromGitHub { 16 owner = "sineemore"; 17 repo = "stw"; 18 rev = "c034e04ac912c157f9faa35cb769ba93d92486a0"; 19 sha256 = "sha256-YohHF1O0lm6QWJv/wkS4RVJvWaOjcYSZNls6tt4hbqo=="; 20 }; 21 22 buildInputs = [ 23 libX11 24 fontconfig 25 libXft 26 libXrender 27 ]; 28 29 makeFlags = [ 30 "CC:=$(CC)" 31 "PREFIX=$(out)" 32 ]; 33 34 meta = with lib; { 35 description = "Simple text widget for X resembling the watch(1) command"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ somasis ]; 38 platforms = platforms.unix; 39 broken = stdenv.hostPlatform.isDarwin; 40 mainProgram = "stw"; 41 }; 42}