10 , scoreDirectory ? "$HOME/.local/share"
13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-CpgqRYmrfOFxhC7yAS2OqRBi4r3Vesq3+7a0q5rc3vM=";
36 # remove the denied setting of setuid bit permission
37 patches = [ ./0001-remove_setuid.patch ];
39 # run dopewars with -f so that it finds its scoreboard file in ~/.local/share
41 wrapProgram $out/bin/dopewars \
42 --run 'mkdir -p ${scoreDirectory}' \
43 --add-flags '-f ${scoreDirectory}/dopewars.sco'
47 description = "Game simulating the life of a drug dealer in New York";
48 homepage = "https://dopewars.sourceforge.io";
49 license = licenses.gpl2Plus;
50 maintainers = with maintainers; [ geri1701 ];
51 mainProgram = "dopewars";
52 platforms = platforms.unix;