2017-01-18 18:49:23 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "shaarli-material";
|
2019-08-06 13:07:45 +01:00
|
|
|
version = "0.10.4";
|
2017-01-18 18:49:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kalvn";
|
|
|
|
repo = "Shaarli-Material";
|
|
|
|
rev = "v${version}";
|
2019-08-06 13:07:45 +01:00
|
|
|
sha256 = "161kf7linyl2l2d7y60v96xz3fwa572fqm1vbm58mjgkzkfndhrv";
|
2017-01-18 18:49:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
for f in material/*.html
|
|
|
|
do
|
|
|
|
substituteInPlace $f \
|
2018-03-31 11:27:17 +01:00
|
|
|
--replace '.min.css?v={$version_hash}"' '.min.css#"' \
|
|
|
|
--replace '.min.js?v={$version_hash}"' '.min.js#"' \
|
2017-01-18 18:49:23 +00:00
|
|
|
--replace '.png"' '.png#"'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv material/ $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-10-03 20:40:29 +01:00
|
|
|
# This package has not been updated for the new build process
|
|
|
|
# introduced in 0.10.3 which depends on npm and gulp.
|
|
|
|
broken = true;
|
2017-01-18 18:49:23 +00:00
|
|
|
description = "A theme base on Google's Material Design for Shaarli, the superfast delicious clone";
|
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/kalvn/Shaarli-Material";
|
2019-10-03 20:40:29 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-01-18 18:49:23 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|