pantheon.elementary-redacted-script: use elementary as upstream

Make it easier to track updates.
This commit is contained in:
Bobby Rong 2021-12-20 22:52:29 +08:00
parent a399af5bb2
commit 9d4f3cabe9
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -1,29 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, nix-update-script
}:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "elementary-redacted-script";
version = "unstable-2016-06-03";
version = "5.1.0";
src = fetchFromGitHub {
owner = "png2378";
repo = "redacted-elementary";
rev = "346440ff9ce19465e6d5c3d6d67a8573f992c746";
sha256 = "1jpd13sxkarclr0mlm66wzgpjh52ghzjzn4mywhyshyyskwn7jg1";
owner = "elementary";
repo = "fonts";
rev = version;
sha256 = "sha256-YiE7yaH0ZrF1/Cp+3bcJYm2cExQjFcat6JLMJPjhops=";
};
dontBuild = true;
installPhase = ''
mkdir -p $out/share/fonts/truetype/redacted-elementary
cp -a truetype/*.ttf $out/share/fonts/truetype/redacted-elementary
cp -a redacted/*.ttf $out/share/fonts/truetype/redacted-elementary
'';
passthru = {
updateScript = nix-update-script {
attrPath = "pantheon.${pname}";
};
};
meta = with lib; {
description = "Font for concealing text";
homepage = "https://github.com/png2378/redacted-elementary";
homepage = "https://github.com/elementary/fonts";
license = licenses.ofl;
maintainers = teams.pantheon.members;
platforms = platforms.linux;