Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.3 kB view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 breeze-icons, 6 elementary-icon-theme, 7 gnome-icon-theme, 8 hicolor-icon-theme, 9}: 10 11stdenvNoCC.mkDerivation rec { 12 pname = "la-capitaine-icon-theme"; 13 version = "0.6.2"; 14 15 src = fetchFromGitHub { 16 owner = "keeferrourke"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "0id2dddx6rl71472l47vafx968wnklmq6b980br68w82kcvqczzs"; 20 }; 21 22 propagatedBuildInputs = [ 23 breeze-icons 24 elementary-icon-theme 25 gnome-icon-theme 26 hicolor-icon-theme 27 ]; 28 29 dontDropIconThemeCache = true; 30 31 postPatch = '' 32 patchShebangs configure 33 34 substituteInPlace configure \ 35 --replace 'DISTRO=$(format "$(lsb_release -si 2>/dev/null)")' 'DISTRO=nixos' 36 ''; 37 38 installPhase = '' 39 runHook preInstall 40 mkdir -p $out/share/icons/$pname 41 cp -a * $out/share/icons/$pname 42 rm $out/share/icons/$pname/{configure,COPYING,LICENSE,*.md} 43 runHook postInstall 44 ''; 45 46 meta = with lib; { 47 description = "Icon theme inspired by macOS and Google's Material Design"; 48 homepage = "https://github.com/keeferrourke/la-capitaine-icon-theme"; 49 license = with licenses; [ 50 gpl3Plus 51 mit 52 ]; 53 platforms = platforms.linux; 54 maintainers = with maintainers; [ romildo ]; 55 }; 56}