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;
|
||||
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
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