Add fileicon tool
This commit is contained in:
parent
160f3ab303
commit
a7fdb34dc9
23
fileicon.nix
Normal file
23
fileicon.nix
Normal 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?
|
||||||
|
}
|
|
@ -63,6 +63,8 @@
|
||||||
mkNixOsGraphical = opts: import ./nixos/graphical.nix opts;
|
mkNixOsGraphical = opts: import ./nixos/graphical.nix opts;
|
||||||
mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
|
mkNixOsNetworking = opts: import ./nixos/networking.nix opts;
|
||||||
in {
|
in {
|
||||||
|
packages."aarch64-darwin".fileicon = import ./fileicon.nix { pkgs = mkPkgs "aarch64-darwin"; };
|
||||||
|
|
||||||
homeConfigurations."xenia@Joe-Bidens-MacBook-Pro" =
|
homeConfigurations."xenia@Joe-Bidens-MacBook-Pro" =
|
||||||
let
|
let
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
|
|
BIN
nix-apps-folder.png
Normal file
BIN
nix-apps-folder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 560 KiB |
Loading…
Reference in New Issue
Block a user