diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-08-06 18:51:59 +0200 |
| commit | a1f7f43c95c049628e826856ec589b339cd4f5db (patch) | |
| tree | a0f5bb10fc36f02ad6dbaebf1232ca2548f9ccfa /home/pkgs/icons | |
initial commit
Diffstat (limited to 'home/pkgs/icons')
| -rw-r--r-- | home/pkgs/icons/default.nix | 15 | ||||
| -rwxr-xr-x | home/pkgs/icons/generate-package.sh | 11 | ||||
| -rw-r--r-- | home/pkgs/icons/icons.txt | 3 |
3 files changed, 29 insertions, 0 deletions
diff --git a/home/pkgs/icons/default.nix b/home/pkgs/icons/default.nix new file mode 100644 index 0000000..8b722d8 --- /dev/null +++ b/home/pkgs/icons/default.nix @@ -0,0 +1,15 @@ +{ pkgs }: { + netflix = pkgs.fetchurl { + url = "https://www.vectorlogo.zone/logos/netflix/netflix-icon.svg"; + sha256 = "0b4gqhw9y62fm72x61q03yzbllgfxpkjbbsdvj7d5wg3jshjkgdb"; + }; + mubi = pkgs.fetchurl { + url = "https://mubi.com/logo"; + sha256 = "0fj6bafba9z8yirklr74b708pzmy8pjg68l1vx139ddnimh2d4n3"; + }; + deezer = pkgs.fetchurl { + url = + "https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/deezer.svg"; + sha256 = "1qcj1gqz8gc9cwlj4cl6yj5ik1vz4ya6qcncr5fbciprzaaf3pg9"; + }; +} diff --git a/home/pkgs/icons/generate-package.sh b/home/pkgs/icons/generate-package.sh new file mode 100755 index 0000000..9485b87 --- /dev/null +++ b/home/pkgs/icons/generate-package.sh @@ -0,0 +1,11 @@ +icons=$(cat icons.txt) + +echo '{ pkgs }:' | tee default.nix +echo '{' | tee -a default.nix +while read -r line; do + name=$(echo $line | cut -f1 -d' ') + url=$(echo $line | cut -f2 -d' ') + sha256=$(nix-prefetch-url $url 2>/dev/null) + echo -e "\t$name = pkgs.fetchurl {\n\t\turl = \"$url\";\n\t\tsha256 = \"$sha256\";\n\t};" | tee -a default.nix +done <<< $icons +echo '}' | tee -a default.nix diff --git a/home/pkgs/icons/icons.txt b/home/pkgs/icons/icons.txt new file mode 100644 index 0000000..388daa2 --- /dev/null +++ b/home/pkgs/icons/icons.txt @@ -0,0 +1,3 @@ +netflix https://www.vectorlogo.zone/logos/netflix/netflix-icon.svg +mubi https://mubi.com/logo +deezer https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/deezer.svg |
