diff --git a/fileicon.nix b/fileicon.nix new file mode 100644 index 00000000..e8899d50 --- /dev/null +++ b/fileicon.nix @@ -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? +} diff --git a/flake.nix b/flake.nix index 2869f32e..ec6298dc 100644 --- a/flake.nix +++ b/flake.nix @@ -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"; diff --git a/nix-apps-folder.png b/nix-apps-folder.png new file mode 100644 index 00000000..371b59bf Binary files /dev/null and b/nix-apps-folder.png differ