Add fileicon tool

This commit is contained in:
xenia 2024-07-27 17:01:47 +02:00
parent 160f3ab303
commit a7fdb34dc9
3 changed files with 25 additions and 0 deletions

23
fileicon.nix Normal file
View File

@ -0,0 +1,23 @@
{ pkgs }:
let
name = "fileicon";
version = "v0.3.4";
src = pkgs.fetchFromGitHub {
owner = "mklement0";
repo = name;
rev = version;
hash = "sha256-AqAnY/neBIkxgB5ioyExO4NSLw0Rk4wTo9hcCHTqOQ8=";
};
in pkgs.stdenv.mkDerivation {
inherit src name version;
dontBuild = true;
installPhase = ''
cd "$src"
mkdir -p "$out/bin" "$out/share/man"
cp bin/fileicon "$out/bin/"
cp man/fileicon.1 "$out/share/man"
'';
# TODO: Run the test suite?
}

View File

@ -63,6 +63,8 @@
mkNixOsGraphical = opts: import ./nixos/graphical.nix opts;
mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
in {
packages."aarch64-darwin".fileicon = import ./fileicon.nix { pkgs = mkPkgs "aarch64-darwin"; };
homeConfigurations."xenia@Joe-Bidens-MacBook-Pro" =
let
system = "aarch64-darwin";

BIN
nix-apps-folder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 KiB