home/fileicon.nix

24 lines
500 B
Nix
Raw Normal View History

2024-07-27 17:01:47 +02:00
{ 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?
}