Skip to content

Commit

Permalink
emulationstation: get rid of fetchSubmodules
Browse files Browse the repository at this point in the history
Mental note: I need to automate this!
  • Loading branch information
AndersonTorres committed Jul 12, 2024
1 parent ab5b5d3 commit 43a611f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pkgs/by-name/em/emulationstation/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
stdenv.mkDerivation {
inherit (_sources.emulationstation) pname version src;

postUnpack = ''
pushd $sourceRoot/external/pugixml
cp --verbose --archive ${sources.pugixml.src}/* .
chmod --recursive 744 .
popd
'';

nativeBuildInputs = [
SDL2
cmake
Expand Down
18 changes: 16 additions & 2 deletions pkgs/by-name/em/emulationstation/sources.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,22 @@
owner = "RetroPie";
repo = "EmulationStation";
rev = "v${self.version}";
fetchSubmodules = true;
hash = "sha256-J5h/578FVe4DXJx/AvpRnCIUpqBeFtmvFhUDYH5SErQ=";
hash = "sha256-f2gRkp+3Pp2qnvg2RBzaHPpzhAnwx0+5x1Pe3kD90xE=";
};
};
in
self;

pugixml = let
self = {
pname = "pugixml";
version = "1.8.1";

src = fetchFromGitHub {
owner = "zeux";
repo = "pugixml";
rev = "v${self.version}";
hash = "sha256-LbjTN1hnIbqI79C+gCdwuDG0+B/5yXf7hg0Q+cDFIf4=";
};
};
in
Expand Down

0 comments on commit 43a611f

Please sign in to comment.