nixpkgs/pkgs/os-specific/linux/metastore/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
646 B
Nix

{ lib, stdenv, libbsd, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.1.2";
pname = "metastore";
src = fetchFromGitHub {
owner = "przemoc";
repo = "metastore";
rev = "v${version}";
sha256 = "0mb10wfckswqgi0bq25ncgabnd3iwj7s7hhg3wpcyfgckdynwizv";
};
buildInputs = [ libbsd ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
description = "Store and restore metadata from a filesystem";
mainProgram = "metastore";
homepage = "https://software.przemoc.net/#metastore";
license = licenses.gpl2;
maintainers = with maintainers; [ sstef ];
platforms = platforms.linux;
};
}