nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 37 lines 935 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation { 7 pname = "dwmbar"; 8 version = "unstable-2021-12-22"; 9 10 src = fetchFromGitHub { 11 owner = "thytom"; 12 repo = "dwmbar"; 13 rev = "574f5703c558a56bc9c354471543511255423dc7"; 14 sha256 = "sha256-IrelZpgsxq2dnsjMdh7VC5eKffEGRbDkZmZBD+tROPs="; 15 }; 16 17 postPatch = '' 18 substituteInPlace dwmbar \ 19 --replace 'DEFAULT_CONFIG_DIR="/usr/share/dwmbar"' "DEFAULT_CONFIG_DIR=\"$out/share/dwmbar\"" 20 ''; 21 22 installPhase = '' 23 install -d $out/share/dwmbar 24 cp -r modules $out/share/dwmbar/ 25 install -D -t $out/share/dwmbar/ config 26 install -D -t $out/share/dwmbar/ bar.sh 27 install -Dm755 -t $out/bin/ dwmbar 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/thytom/dwmbar"; 32 description = "A Modular Status Bar for dwm"; 33 license = licenses.gpl3Plus; 34 maintainers = with maintainers; [ baitinq ]; 35 platforms = platforms.linux; 36 }; 37}