1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/servers/web-apps/shaarli/material-theme.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

36 lines
907 B
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; {
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;
};
}