nixpkgs-suyu/pkgs/servers/web-apps/shaarli/material-theme.nix

36 lines
880 B
Nix
Raw Normal View History

2017-01-18 19:49:23 +01:00
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "shaarli-material-${version}";
2017-01-21 16:01:08 +01:00
version = "0.8.3";
2017-01-18 19:49:23 +01:00
src = fetchFromGitHub {
owner = "kalvn";
repo = "Shaarli-Material";
rev = "v${version}";
2017-01-21 16:01:08 +01:00
sha256 = "0ivq35183r5vyzvf47sgxwdxllmvhd5w9w75xgyp3kbw2na4yrmr";
2017-01-18 19:49:23 +01: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;
};
}