nixpkgs/pkgs/os-specific/linux/regionset/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

27 lines
693 B
Nix

{ lib, stdenv, fetchurl }:
let version = "0.2"; in
stdenv.mkDerivation {
pname = "regionset";
inherit version;
src = fetchurl {
url = "http://linvdr.org/download/regionset/regionset-${version}.tar.gz";
sha256 = "1fgps85dmjvj41a5bkira43vs2aiivzhqwzdvvpw5dpvdrjqcp0d";
};
installPhase = ''
install -Dm755 {.,$out/bin}/regionset
install -Dm644 {.,$out/share/man/man8}/regionset.8
'';
meta = with lib; {
inherit version;
homepage = "http://linvdr.org/projects/regionset/";
description = "Tool for changing the region code setting of DVD players";
mainProgram = "regionset";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}