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:
@@ -35,6 +35,7 @@
|
|||||||
_module.args.pkgs = import inputs.nixpkgs {
|
_module.args.pkgs = import inputs.nixpkgs {
|
||||||
inherit (inputs') system;
|
inherit (inputs') system;
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
# These will just be available
|
# These will just be available
|
||||||
packages = with pkgs; [ pre-commit ];
|
packages = with pkgs; [ pre-commit ];
|
||||||
@@ -72,8 +73,8 @@
|
|||||||
win.sword.overrideAttrs {
|
win.sword.overrideAttrs {
|
||||||
src = pkgs.fetchsvn {
|
src = pkgs.fetchsvn {
|
||||||
url = "https://svn.crosswire.org/svn/sword/trunk";
|
url = "https://svn.crosswire.org/svn/sword/trunk";
|
||||||
rev = "3895";
|
rev = "3900";
|
||||||
hash = "sha256-ju6TsfiAUquXbost6PzStHDLfvOJTNON/iSIupi6IOc=";
|
hash = "sha256-nNiv0YB7MM7kFplTfVM7x48SMLxHu3Js5Qn5ak583Zk=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -81,13 +82,15 @@
|
|||||||
pkgs.writeShellApplication {
|
pkgs.writeShellApplication {
|
||||||
name = "package-sword";
|
name = "package-sword";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
|
coreutils
|
||||||
gnutar
|
gnutar
|
||||||
xz
|
xz
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
|
set -x
|
||||||
out=$(pwd)
|
out=$(pwd)
|
||||||
pushd ${svnSword}
|
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
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user