feat: add notion desktop entry
This commit is contained in:
parent
c8ef495a63
commit
21be3b127f
8 changed files with 111 additions and 13 deletions
29
utils/make-icon.nix
Normal file
29
utils/make-icon.nix
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue