Compare commits
2 Commits
41fd54cfad
...
a193e65a45
Author | SHA1 | Date | |
---|---|---|---|
a193e65a45 | |||
b8ee21b6e8 |
6
flake.lock
generated
6
flake.lock
generated
@ -623,11 +623,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-mine": {
|
"nixpkgs-mine": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717245190,
|
"lastModified": 1717628902,
|
||||||
"narHash": "sha256-UFuJkXgNQ2JbD6P9EJCzelUQ73wzxzGrybfkO3o/LGU=",
|
"narHash": "sha256-qMAW+oKis3F8jXTjX9Ng02/LzZd+7YOK05Qa33h9yqY=",
|
||||||
"owner": "devplayer0",
|
"owner": "devplayer0",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "9b78c3a4c5800e1998d330d06d662598b21ac0d1",
|
"rev": "3e0ee08114e1563b1a0fd6a907563b5e86258fb4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -375,6 +375,10 @@ in
|
|||||||
|
|
||||||
# MSS clamping to workaround IPv6 PMTUD being broken...
|
# MSS clamping to workaround IPv6 PMTUD being broken...
|
||||||
tcp flags syn tcp option maxseg size set rt mtu counter
|
tcp flags syn tcp option maxseg size set rt mtu counter
|
||||||
|
|
||||||
|
# More Disney+ discrimination...
|
||||||
|
# TODO: This prefix could change (random AWS block)
|
||||||
|
ip6 daddr 2600:9000:2245::/48 drop
|
||||||
}
|
}
|
||||||
chain forward {
|
chain forward {
|
||||||
${lib.my.c.as211024.nftTrust}
|
${lib.my.c.as211024.nftTrust}
|
||||||
|
@ -66,7 +66,7 @@ in
|
|||||||
-- Disney+ doesn't like our IP space...
|
-- Disney+ doesn't like our IP space...
|
||||||
function preresolve(dq)
|
function preresolve(dq)
|
||||||
local name = dq.qname:toString()
|
local name = dq.qname:toString()
|
||||||
if dq.qtype == pdns.AAAA and (string.find(name, "disneyplus") or string.find(name, "disney-plus")) then
|
if dq.qtype == pdns.AAAA and (string.find(name, "disneyplus") or string.find(name, "disney-plus") or string.find(name , "disney.api")) then
|
||||||
dq.rcode = 0
|
dq.rcode = 0
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
48
pkgs/chocolate-doom2xx.nix
Normal file
48
pkgs/chocolate-doom2xx.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ lib, stdenv, autoreconfHook, pkg-config, SDL, SDL_mixer, SDL_net
|
||||||
|
, fetchFromGitHub, fetchpatch, python3 }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "chocolate-doom";
|
||||||
|
version = "2.3.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "chocolate-doom";
|
||||||
|
repo = pname;
|
||||||
|
rev = "${pname}-${version}";
|
||||||
|
sha256 = "sha256-1uw/1CYKBvDNgT5XxRBY24Evt3f4Y6YQ6bScU+KNHgM=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Pull upstream patch to fix build against gcc-10:
|
||||||
|
# https://github.com/chocolate-doom/chocolate-doom/pull/1257
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fno-common.patch";
|
||||||
|
url = "https://github.com/chocolate-doom/chocolate-doom/commit/a8fd4b1f563d24d4296c3e8225c8404e2724d4c2.patch";
|
||||||
|
sha256 = "1dmbygn952sy5n8qqp0asg11pmygwgygl17lrj7i0fxa0nrhixhj";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs --build man/{simplecpp,docgen}
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
autoreconfHook
|
||||||
|
pkg-config
|
||||||
|
# for documentation
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
buildInputs = [ SDL SDL_mixer SDL_net ];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "http://chocolate-doom.org/";
|
||||||
|
description = "A Doom source port that accurately reproduces the experience of Doom as it was played in the 1990s";
|
||||||
|
license = lib.licenses.gpl2Plus;
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
|
hydraPlatforms = lib.platforms.linux; # darwin times out
|
||||||
|
maintainers = with lib.maintainers; [ ];
|
||||||
|
};
|
||||||
|
}
|
@ -9,4 +9,5 @@ in
|
|||||||
librespeed-go = callPackage ./librespeed-go.nix { };
|
librespeed-go = callPackage ./librespeed-go.nix { };
|
||||||
modrinth-app = callPackage ./modrinth-app { };
|
modrinth-app = callPackage ./modrinth-app { };
|
||||||
glfw-minecraft = callPackage ./glfw-minecraft { };
|
glfw-minecraft = callPackage ./glfw-minecraft { };
|
||||||
|
chocolate-doom2xx = callPackage ./chocolate-doom2xx.nix { };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user