mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
shaarli-material: init at 0.8.2
This commit is contained in:
parent
1aa77d0519
commit
6fb8e668d9
38
pkgs/servers/web-apps/shaarli/material-theme.nix
Normal file
38
pkgs/servers/web-apps/shaarli/material-theme.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "shaarli-material-${version}";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kalvn";
|
||||
repo = "Shaarli-Material";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gam080iwr8vd6k6liv0zmpb3zyw37a53nj1s4ywb4d2i68hjncd";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
for f in material/*.html
|
||||
do
|
||||
substituteInPlace $f \
|
||||
--replace '.min.css"' '.min.css#"' \
|
||||
--replace '.min.js"' '.min.js#"' \
|
||||
--replace '.png"' '.png#"'
|
||||
done
|
||||
|
||||
substituteInPlace material/loginform.html \
|
||||
--replace '"ban_canLogin()"' '"ban_canLogin($conf)"' # PHP 7.1 fix (https://github.com/shaarli/Shaarli/issues/711)
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
@ -10747,6 +10747,8 @@ in
|
||||
|
||||
shaarli = callPackage ../servers/web-apps/shaarli { };
|
||||
|
||||
shaarli-material = callPackage ../servers/web-apps/shaarli/material-theme.nix { };
|
||||
|
||||
axis2 = callPackage ../servers/http/tomcat/axis2 { };
|
||||
|
||||
unifi = callPackage ../servers/unifi { };
|
||||
|
Loading…
Reference in New Issue
Block a user