Sword 3900 and fix date bug

Update Sword SVN to revision 3900
Set mtime on files to present instead of Unix 0
This commit is contained in:
Greg Hellings
2025-04-01 14:00:33 -05:00
parent b828fc1d62
commit 96eb46c351
+6 -3
View File
@@ -35,6 +35,7 @@
_module.args.pkgs = import inputs.nixpkgs {
inherit (inputs') system;
};
devShells.default = pkgs.mkShell {
# These will just be available
packages = with pkgs; [ pre-commit ];
@@ -72,8 +73,8 @@
win.sword.overrideAttrs {
src = pkgs.fetchsvn {
url = "https://svn.crosswire.org/svn/sword/trunk";
rev = "3895";
hash = "sha256-ju6TsfiAUquXbost6PzStHDLfvOJTNON/iSIupi6IOc=";
rev = "3900";
hash = "sha256-nNiv0YB7MM7kFplTfVM7x48SMLxHu3Js5Qn5ak583Zk=";
};
}
);
@@ -81,13 +82,15 @@
pkgs.writeShellApplication {
name = "package-sword";
runtimeInputs = with pkgs; [
coreutils
gnutar
xz
];
text = ''
set -x
out=$(pwd)
pushd ${svnSword}
tar cvhaf "$out/sword.tar.xz" ./* --transform "s+^\\./+sword/+"
tar --mtime="$(date +'%Y-%m-%d')" -cvhaf "$out/sword.tar.xz" ./* --transform "s+^\\./+sword/+"
'';
};
in