2017-01-18 19:49:23 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shaarli-material-${version}";
|
2018-03-31 12:27:17 +02:00
|
|
|
version = "0.9.5";
|
2017-01-18 19:49:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kalvn";
|
|
|
|
repo = "Shaarli-Material";
|
|
|
|
rev = "v${version}";
|
2018-03-31 12:27:17 +02:00
|
|
|
sha256 = "1bxw74ksvfv46995iwc7jhvl78hd84lcq3h9iyxvs8gpkhkapv55";
|
2017-01-18 19:49:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
for f in material/*.html
|
|
|
|
do
|
|
|
|
substituteInPlace $f \
|
2018-03-31 12:27:17 +02:00
|
|
|
--replace '.min.css?v={$version_hash}"' '.min.css#"' \
|
|
|
|
--replace '.min.js?v={$version_hash}"' '.min.js#"' \
|
2017-01-18 19:49:23 +01:00
|
|
|
--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;
|
|
|
|
};
|
|
|
|
}
|