3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/web-apps/shaarli/material-theme.nix
2020-04-10 17:54:53 +01:00

39 lines
1 KiB
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "shaarli-material";
version = "0.10.4";
src = fetchFromGitHub {
owner = "kalvn";
repo = "Shaarli-Material";
rev = "v${version}";
sha256 = "161kf7linyl2l2d7y60v96xz3fwa572fqm1vbm58mjgkzkfndhrv";
};
patchPhase = ''
for f in material/*.html
do
substituteInPlace $f \
--replace '.min.css?v={$version_hash}"' '.min.css#"' \
--replace '.min.js?v={$version_hash}"' '.min.js#"' \
--replace '.png"' '.png#"'
done
'';
installPhase = ''
mv material/ $out
'';
meta = with stdenv.lib; {
# This package has not been updated for the new build process
# introduced in 0.10.3 which depends on npm and gulp.
broken = true;
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; [ ];
platforms = platforms.all;
};
}