mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
pimsync: 0.1.0 -> 0.2.0 (#380387)
pimsync now tries to create a version string using git-describe[1], but
only if there isn't an environment variable PIMSYNC_VERSION. That is
then used instead.
Also, makeFlags in fact don't change the behavior of buildRustPackage as
far as I know.
Up until now man pages were neither generated nor installed.
[1]: 4df1e23799
This commit is contained in:
@@ -5,37 +5,47 @@
|
||||
pkg-config,
|
||||
sqlite,
|
||||
scdoc,
|
||||
installShellFiles,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "pimsync";
|
||||
version = "0.1.0";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~whynothugo";
|
||||
repo = "pimsync";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-upOCrpbveSSFrhdHDkTOmja4MLmsgtuoDHMsgXyulWI=";
|
||||
hash = "sha256-mNOKAnBpCo4LFn7l16UG7V3cCJkUhRxhB/0jwoPLttM=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-i9t/6z1UJFppv3y7anB+df+UldGP2TynYKKIUAZff5Y=";
|
||||
cargoHash = "sha256-2Uj+dDtuykQx1tBSGN3AE3Bz904bHfkbhKN3VIeG40M=";
|
||||
|
||||
PIMSYNC_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
scdoc
|
||||
makeWrapper
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"build"
|
||||
"PREFIX=${placeholder "out"}"
|
||||
];
|
||||
postBuild = ''
|
||||
make man
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage target/pimsync.1 target/pimsync.conf.5 target/pimsync-migration.7
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Synchronise calendars and contacts";
|
||||
|
||||
Reference in New Issue
Block a user