feat: add notion desktop entry

This commit is contained in:
DACHXY 2025-01-14 12:00:16 +08:00
parent c8ef495a63
commit 21be3b127f
8 changed files with 111 additions and 13 deletions

29
utils/make-icon.nix Normal file
View file

@ -0,0 +1,29 @@
{
pkgs ? import <nixpkgs> { },
...
}:
let
makeIconPkg =
{
name,
url,
sha256,
}:
pkgs.stdenvNoCC.mkDerivation rec {
inherit name;
pname = name;
src = pkgs.fetchurl {
inherit url sha256;
};
dontUnpack = true;
buildInputs = [ ];
installPhase = ''
mkdir -p $out/share/icons
cp -r $src $out/share/icons
'';
};
in
makeIconPkg