bibata-extra-cursors: 0.3 -> 1.0.1
This commit is contained in:
parent
b8fbdc8852
commit
408ecd60d4
@ -1,51 +1,54 @@
|
|||||||
{ lib, stdenvNoCC, fetchFromGitHub, gnome-themes-extra, inkscape, xcursorgen, python3 }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchurl
|
||||||
|
, clickgen
|
||||||
|
, unzip
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
py = python3.withPackages(ps: [ ps.pillow ]);
|
|
||||||
in stdenvNoCC.mkDerivation rec {
|
|
||||||
pname = "bibata-extra-cursors";
|
pname = "bibata-extra-cursors";
|
||||||
version = "0.3";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "KaizIqbal";
|
owner = "ful1e5";
|
||||||
repo = "Bibata_Extra_Cursor";
|
repo = "Bibata_Extra_Cursor";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1bh945hvakbh985jkr6g6x0myw3k49pvn24m1clvqdv35v65nfxk";
|
sha256 = "0wndl4c547k99y0gq922hn7z1mwdgxvvyjfm6757g6shfbcmkz7m";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
bitmaps = fetchurl {
|
||||||
patchShebangs .
|
url = "https://github.com/ful1e5/Bibata_Extra_Cursor/releases/download/v${version}/bitmaps.zip";
|
||||||
substituteInPlace build.sh --replace "sudo" ""
|
sha256 = "0vf14ln53wigaq3dkqdk5avarqplsq751nlv72da04ms6gqjfhdl";
|
||||||
|
};
|
||||||
|
|
||||||
# Don't generate windows cursors,
|
nativeBuildInputs = [ unzip ];
|
||||||
# they aren't used and aren't installed
|
|
||||||
# by the project's install script anyway.
|
|
||||||
echo "exit 0" > w32-make.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
buildInputs = [ clickgen ];
|
||||||
gnome-themes-extra
|
|
||||||
inkscape
|
|
||||||
xcursorgen
|
|
||||||
py
|
|
||||||
];
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
HOME="$NIX_BUILD_ROOT" ./build.sh
|
mkdir bitmaps
|
||||||
|
unzip $bitmaps -d bitmaps
|
||||||
|
rm -rf themes
|
||||||
|
cd builder && make build_unix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -dm 0755 $out/share/icons
|
install -dm 0755 $out/share/icons
|
||||||
for x in Bibata_*; do
|
cd ../
|
||||||
cp -pr $x/out/X11/$x $out/share/icons/
|
cp -rf themes/* $out/share/icons/
|
||||||
done
|
'';
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace "builder/Makefile" \
|
||||||
|
--replace "/bin/bash" "bash"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Cursors Based on Bibata";
|
description = "Material Based Cursor Theme";
|
||||||
homepage = "https://github.com/KaizIqbal/Bibata_Extra_Cursor";
|
homepage = "https://github.com/ful1e5/Bibata_Extra_Cursor";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ dtzWill ];
|
maintainers = with maintainers; [ dtzWill AdsonCicilioti ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user