depot/third_party/nixpkgs/pkgs/servers/web-apps/shaarli/material-theme.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

38 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;
};
}