2017-01-18 18:49:23 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shaarli-material-${version}";
|
2017-10-21 15:23:24 +00:00
|
|
|
version = "0.9.1";
|
2017-01-18 18:49:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kalvn";
|
|
|
|
repo = "Shaarli-Material";
|
|
|
|
rev = "v${version}";
|
2017-10-21 15:23:24 +00:00
|
|
|
sha256 = "0x8d9425n3jrwzsyxclbxfspvi91v1klq8r3m6wcj81kys7vmzgh";
|
2017-01-18 18:49:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
for f in material/*.html
|
|
|
|
do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace '.min.css"' '.min.css#"' \
|
|
|
|
--replace '.min.js"' '.min.js#"' \
|
|
|
|
--replace '.png"' '.png#"'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv material/ $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A theme base on Google's Material Design for Shaarli, the superfast delicious clone";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/kalvn/Shaarli-Material;
|
|
|
|
maintainers = with maintainers; [ schneefux ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|