mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
qwerty-fr: apply review suggestions
This commit is contained in:
parent
146f08b87a
commit
bf0c89562b
@ -1,32 +1,30 @@
|
|||||||
{ stdenv
|
{
|
||||||
, fetchurl
|
stdenvNoCC,
|
||||||
, lib
|
fetchFromGitHub,
|
||||||
, unzip
|
lib,
|
||||||
,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
pname = "qwerty-fr";
|
pname = "qwerty-fr";
|
||||||
version = "0.7.3";
|
version = "0.7.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/qwerty-fr/qwerty-fr/releases/download/v${version}/qwerty-fr_${version}_linux.zip";
|
owner = "qwerty-fr";
|
||||||
sha256 = "0csxzs2gk8l4y5ii1pgad8zxr9m9mfrl9nblywymg01qw74gpvnm";
|
repo = "qwerty-fr";
|
||||||
|
rev = "refs/tags/v${finalAttrs.version}";
|
||||||
|
sha256 = "sha256-TD67wKdaPaXzJzjKFCfRZl3WflUfdnUSQl/fnjr9TF8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
|
||||||
|
|
||||||
unpackPhase = "unzip $src";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/share/X11/xkb/symbols
|
||||||
cp -r * $out/bin
|
cp $src/linux/us_qwerty-fr $out/share/X11/xkb/symbols
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Qwerty keyboard layout with French accents";
|
description = "Qwerty keyboard layout with French accents";
|
||||||
|
changelog = "https://github.com/qwerty-fr/qwerty-fr/blob/v${finalAttrs.version}/linux/debian/changelog";
|
||||||
homepage = "https://github.com/qwerty-fr/qwerty-fr";
|
homepage = "https://github.com/qwerty-fr/qwerty-fr";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ potb ];
|
maintainers = with maintainers; [ potb ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user