From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- .../games/terraforming-mars/terraforming-mars.nix | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100644 modules/private/websites/tools/games/terraforming-mars/terraforming-mars.nix (limited to 'modules/private/websites/tools/games/terraforming-mars/terraforming-mars.nix') diff --git a/modules/private/websites/tools/games/terraforming-mars/terraforming-mars.nix b/modules/private/websites/tools/games/terraforming-mars/terraforming-mars.nix deleted file mode 100644 index 502a553..0000000 --- a/modules/private/websites/tools/games/terraforming-mars/terraforming-mars.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ fetchgit, runCommand, callPackage, mylibs, nodePackages, nodejs, git }: -let - source = fetchgit { - url = "https://github.com/bafolts/terraforming-mars"; - rev = "25b3f80e276cc0c1fc283a78b6ae94b13c545ab6"; - sha256 = "03xcwvxv2mlmswngklzqp3lf30hgkvdilqq7p1z4h8xmy50cy12k"; - leaveDotGit = true; - fetchSubmodules = true; - }; - patchedSource = runCommand "patch-source" {} '' - cp -r ${source} $out - chmod -R u+w $out - sed -i -e 's/"lockfileVersion": 2,/"lockfileVersion": 1,/' $out/package-lock.json - ''; - packages = callPackage ./node-packages.nix { - src = patchedSource; - nodeEnv = callPackage mylibs.nodeEnv {}; - globalBuildInputs = [ nodePackages.node-pre-gyp ]; - }; - terraforming-mars = runCommand "terraforming-mars" { - buildInputs = [ nodejs git ]; - } '' - cp -r ${source} ./source - chmod -R u+w source - cd source - ln -s ${packages.package}/lib/node_modules/terraforming-mars/node_modules . - npm run build - mkdir $out - cp -a build $out/ - cp -a assets $out/ - cp package.json $out/ - ln -s ${packages.package}/lib/node_modules/terraforming-mars/node_modules $out - ln -s /var/lib/terraforming-mars/db $out/db - ''; -in - terraforming-mars -- cgit v1.2.3