nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 854 B view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 qtbase, 6 qmake, 7 pkg-config, 8 boost, 9}: 10 11mkDerivation rec { 12 pname = "twmn"; 13 version = "2025_03_06"; 14 15 src = fetchFromGitHub { 16 owner = "sboli"; 17 repo = "twmn"; 18 tag = version; 19 hash = "sha256-JQhONBcTJUzsKJY6YstC6HB4d/t8vf155/lN4UUv4l4="; 20 }; 21 22 nativeBuildInputs = [ 23 pkg-config 24 qmake 25 ]; 26 buildInputs = [ 27 qtbase 28 boost 29 ]; 30 31 postPatch = '' 32 sed -i s/-Werror// twmnd/twmnd.pro 33 ''; 34 35 installPhase = '' 36 runHook preInstall 37 38 mkdir -p "$out/bin" 39 cp bin/* "$out/bin" 40 41 runHook postInstall 42 ''; 43 44 meta = { 45 description = "Notification system for tiling window managers"; 46 homepage = "https://github.com/sboli/twmn"; 47 platforms = with lib.platforms; linux; 48 maintainers = [ lib.maintainers.matejc ]; 49 license = lib.licenses.lgpl3; 50 }; 51}