24 lines
500 B
Nix
24 lines
500 B
Nix
{ 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?
|
|
}
|