Add personalized Half-Life nix-derivation
This commit is contained in:
parent
2552eefc61
commit
13e01134f6
|
@ -24,6 +24,7 @@
|
||||||
./misc/filemanager.nix
|
./misc/filemanager.nix
|
||||||
./misc/production.nix
|
./misc/production.nix
|
||||||
./misc/gaming.nix
|
./misc/gaming.nix
|
||||||
|
./misc/xash3d.nix
|
||||||
#./misc/emulators.nix
|
#./misc/emulators.nix
|
||||||
#./misc/remotedesktop.nix
|
#./misc/remotedesktop.nix
|
||||||
./misc/school.nix
|
./misc/school.nix
|
||||||
|
|
6
home-manager/misc/xash3d.nix
Normal file
6
home-manager/misc/xash3d.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
xash3d
|
||||||
|
hlsdk
|
||||||
|
];
|
||||||
|
}
|
17
pkgs/xash/change-zip-date.patch
Normal file
17
pkgs/xash/change-zip-date.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
diff --git a/scripts/waifulib/zip.py b/scripts/waifulib/zip.py
|
||||||
|
index 6e903ba7..d47f1754 100644
|
||||||
|
--- a/scripts/waifulib/zip.py
|
||||||
|
+++ b/scripts/waifulib/zip.py
|
||||||
|
@@ -25,7 +25,11 @@ class ziparchive(Task.Task):
|
||||||
|
arcfile = src.path_from(self.relative_to)
|
||||||
|
|
||||||
|
Logs.debug('%s: %s <- %s as %s', self.__class__.__name__, outfile, infile, arcfile)
|
||||||
|
- zf.write(infile, arcfile)
|
||||||
|
+
|
||||||
|
+ arcfile = zipfile.ZipInfo(filename=arcfile, date_time=(1980, 1, 1, 0, 0, 0))
|
||||||
|
+
|
||||||
|
+ with open(infile, 'rb') as f:
|
||||||
|
+ zf.writestr(arcfile, f.read())
|
||||||
|
|
||||||
|
@TaskGen.feature('zip')
|
||||||
|
def create_zip_archive(self):
|
Loading…
Reference in a new issue